* @deprecated
*/
public class ELException extends Exception {
- // -------------------------------------
- // Member variables
- // -------------------------------------
- private Throwable mRootCause;
-
- // -------------------------------------
/**
* Creates an ELException with no detail message.
**/
super();
}
- // -------------------------------------
/**
* Creates an ELException with the provided detail message.
*
super(pMessage);
}
- // -------------------------------------
/**
* Creates an ELException with the given root cause.
*
* the originating cause of this exception
**/
public ELException(Throwable pRootCause) {
- super(pRootCause.getLocalizedMessage());
- mRootCause = pRootCause;
+ super(pRootCause);
}
// -------------------------------------
* the originating cause of this exception
**/
public ELException(String pMessage, Throwable pRootCause) {
- super(pMessage);
- mRootCause = pRootCause;
+ super(pMessage, pRootCause);
}
// -------------------------------------
* @return the root cause of this exception
*/
public Throwable getRootCause() {
- return mRootCause;
+ return getCause();
}
}
Throwable rootCause = null;
if (t instanceof JspException) {
- rootCause = ((JspException) t).getRootCause();
+ rootCause = ((JspException) t).getCause();
} else if (t instanceof ELException) {
- rootCause = ((ELException) t).getRootCause();
+ rootCause = ((ELException) t).getCause();
}
if (rootCause != null) {