Skip to contentMethod: PropertyNotWritableException(Throwable)
1: /*
2: * Copyright (c) 1997, 2019 Oracle and/or its affiliates and others.
3: * All rights reserved.
4: * Copyright 2004 The Apache Software Foundation
5: *
6: * Licensed under the Apache License, Version 2.0 (the "License");
7: * you may not use this file except in compliance with the License.
8: * You may obtain a copy of the License at
9: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: package jakarta.el;
20:
21: /**
22: * Thrown when a property could not be written to while setting the value on a {@link ValueExpression}.
23: *
24: * <p>
25: * For example, this could be triggered by trying to set a map value on an unmodifiable map.
26: * </p>
27: *
28: * @since Jakarta Server Pages 2.1
29: */
30: public class PropertyNotWritableException extends ELException {
31:
32: private static final long serialVersionUID = 4511862414551151572L;
33:
34: /**
35: * Creates a <code>PropertyNotWritableException</code> with no detail message.
36: */
37: public PropertyNotWritableException() {
38: super();
39: }
40:
41: /**
42: * Creates a <code>PropertyNotWritableException</code> with the provided detail message.
43: *
44: * @param pMessage the detail message
45: */
46: public PropertyNotWritableException(String pMessage) {
47: super(pMessage);
48: }
49:
50: /**
51: * Creates a <code>PropertyNotWritableException</code> with the given root cause.
52: *
53: * @param exception the originating cause of this exception
54: */
55: public PropertyNotWritableException(Throwable exception) {
56: super(exception);
57: }
58:
59: /**
60: * Creates a <code>PropertyNotWritableException</code> with the given detail message and root cause.
61: *
62: * @param pMessage the detail message
63: * @param pRootCause the originating cause of this exception
64: */
65: public PropertyNotWritableException(String pMessage, Throwable pRootCause) {
66: super(pMessage, pRootCause);
67: }
68:
69: }