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