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)
Creates a new expression exception.
|
ExpressionException(int position,
java.lang.String message,
java.lang.Throwable cause)
Creates a new expression exception.
|
ExpressionException(java.lang.String message)
Creates a new expression exception.
|
ExpressionException(java.lang.String expressionString,
int position,
java.lang.String message)
Creates a new expression exception.
|
ExpressionException(java.lang.String expressionString,
java.lang.String message)
Creates a new expression exception.
|
ExpressionException(java.lang.String message,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExpressionString() |
java.lang.String |
getMessage()
Return the exception message.
|
int |
getPosition() |
java.lang.String |
getSimpleMessage()
Return the exception simple message without including the expression that caused
the failure.
|
java.lang.String |
toDetailedString() |
protected java.lang.String expressionString
protected int position
public ExpressionException(java.lang.String expressionString, java.lang.String message)
expressionString
- the expression stringmessage
- a descriptive messagepublic ExpressionException(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 exceptionpublic ExpressionException(java.lang.String message)
message
- a descriptive messagepublic ExpressionException(java.lang.String message, java.lang.Throwable cause)
public java.lang.String getMessage()
toDetailedString()
.getMessage
in class java.lang.Throwable
Throwable.getMessage()
public java.lang.String getSimpleMessage()
public java.lang.String toDetailedString()
public final java.lang.String getExpressionString()
public final int getPosition()