|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.commons.ognl.OgnlException
public class OgnlException
Superclass for OGNL exceptions, incorporating an optional encapsulated exception.
| Constructor Summary | |
|---|---|
OgnlException()
Constructs an OgnlException with no message or encapsulated exception. |
|
OgnlException(String msg)
Constructs an OgnlException with the given message but no encapsulated exception. |
|
OgnlException(String msg,
Throwable reason)
Constructs an OgnlException with the given message and encapsulated exception. |
|
| Method Summary | |
|---|---|
Evaluation |
getEvaluation()
Returns the Evaluation that was the root evaluation when the exception was thrown. |
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(PrintStream s)
Prints the stack trace for this (and possibly the encapsulated) exception on the given print stream. |
void |
printStackTrace(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. |
String |
toString()
Returns a string representation of this exception. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OgnlException()
public OgnlException(String msg)
msg - the exception's detail message
public OgnlException(String msg,
Throwable reason)
msg - the exception's detail messagereason - the encapsulated exception| Method Detail |
|---|
public Throwable getReason()
public Evaluation getEvaluation()
Evaluation.public void setEvaluation(Evaluation value)
value - The Evaluation.public String toString()
toString in class Throwablepublic void printStackTrace()
printStackTrace in class Throwablepublic void printStackTrace(PrintStream s)
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter s)
printStackTrace in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||