01: /*
02: * The contents of this file are subject to the terms
03: * of the Common Development and Distribution License
04: * (the "License"). You may not use this file except
05: * in compliance with the License.
06: *
07: * You can obtain a copy of the license at
08: * glassfish/bootstrap/legal/CDDLv1.0.txt or
09: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
10: * See the License for the specific language governing
11: * permissions and limitations under the License.
12: *
13: * When distributing Covered Code, include this CDDL
14: * HEADER in each file and include the License file at
15: * glassfish/bootstrap/legal/CDDLv1.0.txt. If applicable,
16: * add the following below this CDDL HEADER, with the
17: * fields enclosed by brackets "[]" replaced with your
18: * own identifying information: Portions Copyright [yyyy]
19: * [name of copyright owner]
20: *
21: * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
22: */
23:
24: package javax.el;
25:
26: /**
27: * Thrown when a property could not be written to while setting the
28: * value on a {@link ValueExpression}.
29: *
30: * <p>For example, this could be triggered by trying to set a map value
31: * on an unmodifiable map.</p>
32: *
33: * @since JSP 2.1
34: */
35: public class PropertyNotWritableException extends ELException {
36:
37: //-------------------------------------
38: /**
39: * Creates a <code>PropertyNotWritableException</code> with no detail
40: * message.
41: */
42: public PropertyNotWritableException() {
43: super ();
44: }
45:
46: //-------------------------------------
47: /**
48: * Creates a <code>PropertyNotWritableException</code> with the
49: * provided detail message.
50: *
51: * @param pMessage the detail message
52: */
53: public PropertyNotWritableException(String pMessage) {
54: super (pMessage);
55: }
56:
57: //-------------------------------------
58: /**
59: * Creates a <code>PropertyNotWritableException</code> with the given root
60: * cause.
61: *
62: * @param exception the originating cause of this exception
63: */
64: public PropertyNotWritableException(Throwable exception) {
65: super (exception);
66: }
67:
68: //-------------------------------------
69: /**
70: * Creates a <code>PropertyNotWritableException</code> with the given
71: * detail message and root cause.
72: *
73: * @param pMessage the detail message
74: * @param pRootCause the originating cause of this exception
75: */
76: public PropertyNotWritableException(String pMessage,
77: Throwable pRootCause) {
78: super(pMessage, pRootCause);
79: }
80:
81: }
|