类 ExpressionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.taketoday.expression.ExpressionException
- 所有已实现的接口:
Serializable
- 直接已知子类:
EvaluationException,ParseException
Super class for exceptions that can occur whilst processing expressions.
- 从以下版本开始:
- 4.0
- 作者:
- Andy Clement, Phillip Webb
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器构造器说明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. -
方法概要
修饰符和类型方法说明final StringReturn the expression string.Return the exception message.final intReturn the position in the expression string where the problem occurred.Return the exception simple message without including the expression that caused the failure.Return a detailed description of this exception, including the expression String and position (if available) as well as the actual exception message.
-
字段详细资料
-
expressionString
-
position
protected int position
-
-
构造器详细资料
-
ExpressionException
Construct a new expression exception.- 参数:
message- a descriptive message
-
ExpressionException
Construct a new expression exception.- 参数:
message- a descriptive messagecause- the underlying cause of this exception
-
ExpressionException
Construct a new expression exception.- 参数:
expressionString- the expression stringmessage- a descriptive message
-
ExpressionException
Construct a new expression exception.- 参数:
expressionString- the expression stringposition- the position in the expression string where the problem occurredmessage- a descriptive message
-
ExpressionException
Construct a new expression exception.- 参数:
position- the position in the expression string where the problem occurredmessage- a descriptive message
-
ExpressionException
Construct a new expression exception.- 参数:
position- the position in the expression string where the problem occurredmessage- a descriptive messagecause- the underlying cause of this exception
-
-
方法详细资料
-
getExpressionString
Return the expression string. -
getPosition
public final int getPosition()Return the position in the expression string where the problem occurred. -
getMessage
Return the exception message. this method returns the same result astoDetailedString().- 覆盖:
getMessage在类中Throwable- 另请参阅:
-
toDetailedString
Return a detailed description of this exception, including the expression String and position (if available) as well as the actual exception message. -
getSimpleMessage
Return the exception simple message without including the expression that caused the failure.- 从以下版本开始:
- 4.0
-