public class ExpressionException extends RuntimeException
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
expressionString |
protected int |
position |
| 构造器和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
@Nullable protected String expressionString
protected int position
public 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 在类中 ThrowablegetSimpleMessage(),
Throwable.getMessage()public String toDetailedString()
public String getSimpleMessage()