01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package javax.servlet.jsp.el;
19:
20: /**
21: * Represents any of the exception conditions that arise during the
22: * operation evaluation of the evaluator.
23: *
24: * @since 2.0
25: * @deprecated
26: */
27: public class ELException extends Exception {
28: //-------------------------------------
29: // Member variables
30: //-------------------------------------
31:
32: private Throwable mRootCause;
33:
34: //-------------------------------------
35: /**
36: * Creates an ELException with no detail message.
37: **/
38: public ELException() {
39: super ();
40: }
41:
42: //-------------------------------------
43: /**
44: * Creates an ELException with the provided detail message.
45: *
46: * @param pMessage the detail message
47: **/
48: public ELException(String pMessage) {
49: super (pMessage);
50: }
51:
52: //-------------------------------------
53: /**
54: * Creates an ELException with the given root cause.
55: *
56: * @param pRootCause the originating cause of this exception
57: **/
58: public ELException(Throwable pRootCause) {
59: super (pRootCause.getLocalizedMessage());
60: mRootCause = pRootCause;
61: }
62:
63: //-------------------------------------
64: /**
65: * Creates an ELException with the given detail message and root cause.
66: *
67: * @param pMessage the detail message
68: * @param pRootCause the originating cause of this exception
69: **/
70: public ELException(String pMessage, Throwable pRootCause) {
71: super (pMessage);
72: mRootCause = pRootCause;
73: }
74:
75: //-------------------------------------
76: /**
77: * Returns the root cause.
78: *
79: * @return the root cause of this exception
80: */
81: public Throwable getRootCause() {
82: return mRootCause;
83: }
84: }
|