类 ExpressionException

所有已实现的接口:
Serializable
直接已知子类:
EvaluationException, ParseException

public class ExpressionException extends RuntimeException
Super class for exceptions that can occur whilst processing expressions.
从以下版本开始:
4.0
作者:
Andy Clement, Phillip Webb
另请参阅:
  • 字段详细资料

    • expressionString

      @Nullable protected final String expressionString
    • position

      protected int position
  • 构造器详细资料

    • ExpressionException

      public ExpressionException(String message)
      Construct a new expression exception.
      参数:
      message - a descriptive message
    • ExpressionException

      public ExpressionException(String message, Throwable cause)
      Construct a new expression exception.
      参数:
      message - a descriptive message
      cause - the underlying cause of this exception
    • ExpressionException

      public ExpressionException(@Nullable String expressionString, String message)
      Construct a new expression exception.
      参数:
      expressionString - the expression string
      message - a descriptive message
    • ExpressionException

      public ExpressionException(@Nullable String expressionString, int position, String message)
      Construct a new expression exception.
      参数:
      expressionString - the expression string
      position - the position in the expression string where the problem occurred
      message - a descriptive message
    • ExpressionException

      public ExpressionException(int position, String message)
      Construct a new expression exception.
      参数:
      position - the position in the expression string where the problem occurred
      message - a descriptive message
    • ExpressionException

      public ExpressionException(int position, String message, Throwable cause)
      Construct a new expression exception.
      参数:
      position - the position in the expression string where the problem occurred
      message - a descriptive message
      cause - the underlying cause of this exception
  • 方法详细资料

    • getExpressionString

      @Nullable public final String getExpressionString()
      Return the expression string.
    • getPosition

      public final int getPosition()
      Return the position in the expression string where the problem occurred.
    • getMessage

      public String getMessage()
      Return the exception message. this method returns the same result as toDetailedString().
      覆盖:
      getMessage 在类中 Throwable
      另请参阅:
    • toDetailedString

      public String toDetailedString()
      Return a detailed description of this exception, including the expression String and position (if available) as well as the actual exception message.
    • getSimpleMessage

      public String getSimpleMessage()
      Return the exception simple message without including the expression that caused the failure.
      从以下版本开始:
      4.0