|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectThrowable
Exception
ExpressionEvaluationException
public class ExpressionEvaluationException
The most general exception thrown when an error occurs in evaluating an expression.
Constructor Summary | |
---|---|
ExpressionEvaluationException()
Construct an ExpressionEvaluationException. |
|
ExpressionEvaluationException(String message,
String expression)
Construct an ExpressionEvaluationException with the given message and the failed expression. |
|
ExpressionEvaluationException(String message,
String expression,
Throwable cause)
Construct an ExpressionEvaluationException with the given message, the failed expression, and cause. |
|
ExpressionEvaluationException(String expression,
Throwable cause)
Construct a ExpressionEvaluationException with the given message and cause . |
Method Summary | |
---|---|
String[] |
getAvailableContexts()
Get the top-level contexts that were available at the time that the expression failed. |
String |
getExpression()
Get the expression whose failed evaluation cause this exception to be thrown. |
String |
getLocalizedMessage()
|
void |
setAvailableContexts(String[] contexts)
Set the set of top-level contexts that were available at the time that the expression failed. |
void |
setLocalizedMessage(String localizedMessage)
|
Methods inherited from class Throwable |
---|
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExpressionEvaluationException()
public ExpressionEvaluationException(String message, String expression)
message
- a String containing the text of the exception messageexpression
- the expression whose evaluation failedpublic ExpressionEvaluationException(String message, String expression, Throwable cause)
message
- a String containing the text of the exception messageexpression
- the expression whose evaluation failedcause
- a Throwable
that is wrapped by this exceptionpublic ExpressionEvaluationException(String expression, Throwable cause)
message
and cause
.
expression
- a String containing the text of the exception messagecause
- a Throwable
that is wrapped by this exceptionMethod Detail |
---|
public String getExpression()
public void setAvailableContexts(String[] contexts)
contexts
- the list of available contexts.public String[] getAvailableContexts()
null
if the contexts were not set.public void setLocalizedMessage(String localizedMessage)
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |