public class ExpressionException extends RuntimeException
| Modifier and Type | Field and Description |
|---|---|
protected String |
expressionString |
protected int |
position |
| Constructor and Description |
|---|
ExpressionException(int position,
String message)
Construct a new expression exception.
|
ExpressionException(int position,
String message,
Throwable cause)
Construct a new expression exception.
|
ExpressionException(String message)
Construct a new expression exception.
|
ExpressionException(String expressionString,
int position,
String message)
Construct a new expression exception.
|
ExpressionException(String expressionString,
String message)
Construct a new expression exception.
|
ExpressionException(String message,
Throwable cause)
Construct a new expression exception.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getExpressionString()
Return the expression string.
|
String |
getMessage()
Return the exception message.
|
int |
getPosition()
Return the position in the expression string where the problem occurred.
|
String |
getSimpleMessage()
Return the exception simple message without including the expression
that caused the failure.
|
String |
toDetailedString()
Return a detailed description of this exception, including the expression
String and position (if available) as well as the actual exception message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ExpressionException(String message)
message - a descriptive messagepublic ExpressionException(String message, Throwable cause)
message - a descriptive messagecause - the underlying cause of this exceptionpublic ExpressionException(@Nullable String expressionString, String message)
expressionString - the expression stringmessage - a descriptive messagepublic ExpressionException(@Nullable String expressionString, int position, String message)
expressionString - the expression stringposition - the position in the expression string where the problem occurredmessage - a descriptive messagepublic ExpressionException(int position,
String message)
position - the position in the expression string where the problem occurredmessage - a descriptive message@Nullable public final String getExpressionString()
public final int getPosition()
public String getMessage()
toDetailedString().getMessage in class ThrowablegetSimpleMessage(),
Throwable.getMessage()public String toDetailedString()
public String getSimpleMessage()