public class OgnlException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
private Evaluation |
_evaluation
The root evaluation of the expression when the exception was thrown
|
(package private) static java.lang.reflect.Method |
_initCause |
private java.lang.Throwable |
_reason
Why this exception was thrown.
|
Constructor and Description |
---|
OgnlException()
Constructs an OgnlException with no message or encapsulated exception.
|
OgnlException(java.lang.String msg)
Constructs an OgnlException with the given message but no encapsulated exception.
|
OgnlException(java.lang.String msg,
java.lang.Throwable reason)
Constructs an OgnlException with the given message and encapsulated exception.
|
Modifier and Type | Method and Description |
---|---|
Evaluation |
getEvaluation()
Returns the Evaluation that was the root evaluation when the exception was
thrown.
|
java.lang.Throwable |
getReason()
Returns the encapsulated exception, or null if there is none.
|
void |
printStackTrace()
Prints the stack trace for this (and possibly the encapsulated) exception on
System.err.
|
void |
printStackTrace(java.io.PrintStream s)
Prints the stack trace for this (and possibly the encapsulated) exception on the
given print stream.
|
void |
printStackTrace(java.io.PrintWriter s)
Prints the stack trace for this (and possibly the encapsulated) exception on the
given print writer.
|
void |
setEvaluation(Evaluation value)
Sets the Evaluation that was current when this exception was thrown.
|
java.lang.String |
toString()
Returns a string representation of this exception.
|
static java.lang.reflect.Method _initCause
private Evaluation _evaluation
private java.lang.Throwable _reason
public OgnlException()
public OgnlException(java.lang.String msg)
msg
- the exception's detail messagepublic OgnlException(java.lang.String msg, java.lang.Throwable reason)
msg
- the exception's detail messagereason
- the encapsulated exceptionpublic java.lang.Throwable getReason()
public Evaluation getEvaluation()
Evaluation
.public void setEvaluation(Evaluation value)
value
- The Evaluation
.public java.lang.String toString()
toString
in class java.lang.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream s)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter s)
printStackTrace
in class java.lang.Throwable