| |
|
| java.lang.Object java.lang.Throwable java.lang.Exception ognl.OgnlException
All known Subclasses: ognl.MethodFailedException, ognl.InappropriateExpressionException, ognl.NoSuchPropertyException, ognl.ExpressionSyntaxException,
OgnlException | public class OgnlException extends Exception (Code) | | Superclass for OGNL exceptions, incorporating an optional encapsulated exception.
author: Luke Blanshard (blanshlu@netscape.net) author: Drew Davidson (drew@ognl.org) |
Constructor Summary | |
public | OgnlException() Constructs an OgnlException with no message or encapsulated exception. | public | OgnlException(String msg) Constructs an OgnlException with the given message but no encapsulated exception. | public | OgnlException(String msg, Throwable reason) Constructs an OgnlException with the given message and encapsulated exception. |
Method Summary | |
public Evaluation | getEvaluation() Returns the Evaluation that was the root evaluation when the exception was
thrown. | public Throwable | getReason() Returns the encapsulated exception, or null if there is none. | public void | printStackTrace() Prints the stack trace for this (and possibly the encapsulated) exception on
System.err. | public void | printStackTrace(java.io.PrintStream s) Prints the stack trace for this (and possibly the encapsulated) exception on the
given print stream. | public void | printStackTrace(java.io.PrintWriter s) Prints the stack trace for this (and possibly the encapsulated) exception on the
given print writer. | public void | setEvaluation(Evaluation value) Sets the Evaluation that was current when this exception was thrown. | public String | toString() Returns a string representation of this exception. |
OgnlException | public OgnlException()(Code) | | Constructs an OgnlException with no message or encapsulated exception.
|
OgnlException | public OgnlException(String msg)(Code) | | Constructs an OgnlException with the given message but no encapsulated exception.
Parameters: msg - the exception's detail message |
OgnlException | public OgnlException(String msg, Throwable reason)(Code) | | Constructs an OgnlException with the given message and encapsulated exception.
Parameters: msg - the exception's detail message Parameters: reason - the encapsulated exception |
getEvaluation | public Evaluation getEvaluation()(Code) | | Returns the Evaluation that was the root evaluation when the exception was
thrown.
|
getReason | public Throwable getReason()(Code) | | Returns the encapsulated exception, or null if there is none.
the encapsulated exception |
printStackTrace | public void printStackTrace()(Code) | | Prints the stack trace for this (and possibly the encapsulated) exception on
System.err.
|
printStackTrace | public void printStackTrace(java.io.PrintStream s)(Code) | | Prints the stack trace for this (and possibly the encapsulated) exception on the
given print stream.
|
printStackTrace | public void printStackTrace(java.io.PrintWriter s)(Code) | | Prints the stack trace for this (and possibly the encapsulated) exception on the
given print writer.
|
setEvaluation | public void setEvaluation(Evaluation value)(Code) | | Sets the Evaluation that was current when this exception was thrown.
|
toString | public String toString()(Code) | | Returns a string representation of this exception.
a string representation of this exception |
|
|
|