Package: ELException
ELException
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ELException() |
|
|
|
|
|
||||||||||||||||||||
ELException(String) |
|
|
|
|
|
||||||||||||||||||||
ELException(String, Throwable) |
|
|
|
|
|
||||||||||||||||||||
ELException(Throwable) |
|
|
|
|
|
||||||||||||||||||||
getRootCause() |
|
|
|
|
|
Coverage
1: /*
2: * Copyright (c) 1997, 2020 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.servlet.jsp.el;
20:
21: /**
22: * Represents any of the exception conditions that arise during the operation evaluation of the evaluator.
23: *
24: * @deprecated As of JSP 2.1, replaced by {@link jakarta.el.ELException}
25: * @since JSP 2.0
26: */
27: @Deprecated
28: public class ELException extends Exception {
29: private static final long serialVersionUID = -3920470039225321534L;
30:
31: // -------------------------------------
32: // Member variables
33: // -------------------------------------
34:
35: private Throwable mRootCause;
36:
37:
38: /**
39: * Creates an ELException with no detail message.
40: */
41: public ELException() {
42: super();
43: }
44:
45:
46: /**
47: * Creates an ELException with the provided detail message.
48: *
49: * @param pMessage the detail message
50: */
51: public ELException(String pMessage) {
52: super(pMessage);
53: }
54:
55:
56: /**
57: * Creates an ELException with the given root cause.
58: *
59: * @param pRootCause the originating cause of this exception
60: */
61: public ELException(Throwable pRootCause) {
62: super(pRootCause.getLocalizedMessage());
63: mRootCause = pRootCause;
64: }
65:
66:
67: /**
68: * Creates an ELException with the given detail message and root cause.
69: *
70: * @param pMessage the detail message
71: * @param pRootCause the originating cause of this exception
72: */
73: public ELException(String pMessage, Throwable pRootCause) {
74: super(pMessage);
75: mRootCause = pRootCause;
76: }
77:
78:
79: /**
80: * Returns the root cause.
81: *
82: * @return the root cause of this exception
83: */
84: public Throwable getRootCause() {
85: return mRootCause;
86: }
87: }