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 |
55 |
55 |
56 /** |
56 /** |
57 * Exception reference |
57 * Exception reference |
58 * |
58 * |
59 */ |
59 */ |
60 private volatile Throwable linkedException; |
60 private Throwable linkedException; |
61 |
61 |
62 static final long serialVersionUID = -3059799699420143848L; |
|
63 |
62 |
64 /** |
63 /** |
65 * Construct a TypeConstraintException with the specified detail message. The |
64 * Construct a TypeConstraintException with the specified detail message. The |
66 * errorCode and linkedException will default to null. |
65 * errorCode and linkedException will default to null. |
67 * |
66 * |
140 * |
139 * |
141 * @param exception the linked Exception (A null value is permitted and |
140 * @param exception the linked Exception (A null value is permitted and |
142 * indicates that the linked exception does not exist or |
141 * indicates that the linked exception does not exist or |
143 * is unknown). |
142 * is unknown). |
144 */ |
143 */ |
145 public void setLinkedException( Throwable exception ) { |
144 public synchronized void setLinkedException( Throwable exception ) { |
146 this.linkedException = exception; |
145 this.linkedException = exception; |
147 } |
146 } |
148 |
147 |
149 /** |
148 /** |
150 * Returns a short description of this TypeConstraintException. |
149 * Returns a short description of this TypeConstraintException. |