equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
46 |
46 |
47 /** |
47 /** |
48 * Exception reference |
48 * Exception reference |
49 * |
49 * |
50 */ |
50 */ |
51 private volatile Throwable linkedException; |
51 private Throwable linkedException; |
52 |
52 |
53 static final long serialVersionUID = -5621384651494307979L; |
53 static final long serialVersionUID = -5621384651494307979L; |
54 |
54 |
55 /** |
55 /** |
56 * Construct a JAXBException with the specified detail message. The |
56 * Construct a JAXBException with the specified detail message. The |
131 * |
131 * |
132 * @param exception the linked Exception (A null value is permitted and |
132 * @param exception the linked Exception (A null value is permitted and |
133 * indicates that the linked exception does not exist or |
133 * indicates that the linked exception does not exist or |
134 * is unknown). |
134 * is unknown). |
135 */ |
135 */ |
136 public void setLinkedException( Throwable exception ) { |
136 public synchronized void setLinkedException( Throwable exception ) { |
137 this.linkedException = exception; |
137 this.linkedException = exception; |
138 } |
138 } |
139 |
139 |
140 /** |
140 /** |
141 * Returns a short description of this JAXBException. |
141 * Returns a short description of this JAXBException. |