KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > servlet > jsp > el > ELException


1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * 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 /**
22  * Represents any of the exception conditions that arise during the
23  * operation evaluation of the evaluator.
24  *
25  * @since 2.0
26  * @deprecated
27  */

28 public class ELException
29   extends Exception JavaDoc
30 {
31   //-------------------------------------
32
// Member variables
33
//-------------------------------------
34

35   private Throwable JavaDoc mRootCause;
36
37   //-------------------------------------
38
/**
39    * Creates an ELException with no detail message.
40    **/

41   public ELException ()
42   {
43     super ();
44   }
45
46   //-------------------------------------
47
/**
48    * Creates an ELException with the provided detail message.
49    *
50    * @param pMessage the detail message
51    **/

52   public ELException (String JavaDoc pMessage)
53   {
54     super (pMessage);
55   }
56
57   //-------------------------------------
58
/**
59    * Creates an ELException with the given root cause.
60    *
61    * @param pRootCause the originating cause of this exception
62    **/

63   public ELException (Throwable JavaDoc pRootCause)
64   {
65     super( pRootCause.getLocalizedMessage() );
66     mRootCause = pRootCause;
67   }
68
69   //-------------------------------------
70
/**
71    * Creates an ELException with the given detail message and root cause.
72    *
73    * @param pMessage the detail message
74    * @param pRootCause the originating cause of this exception
75    **/

76   public ELException (String JavaDoc pMessage,
77               Throwable JavaDoc pRootCause)
78   {
79     super (pMessage);
80     mRootCause = pRootCause;
81   }
82
83   //-------------------------------------
84
/**
85    * Returns the root cause.
86    *
87    * @return the root cause of this exception
88    */

89   public Throwable JavaDoc getRootCause ()
90   {
91     return mRootCause;
92   }
93 }
94
Popular Tags