Class JavaExpressionParseUtil.JavaExpressionParseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.checkerframework.framework.util.JavaExpressionParseUtil.JavaExpressionParseException
All Implemented Interfaces:
Serializable
Enclosing class:
JavaExpressionParseUtil

public static class JavaExpressionParseUtil.JavaExpressionParseException extends Exception
An exception that indicates a parse error. Call getDiagMessage() to obtain a DiagMessage that can be used for error reporting.
See Also:
  • Field Details

    • args

      public final Object[] args
      The arguments to the error message key.
  • Constructor Details

    • JavaExpressionParseException

      public JavaExpressionParseException(@CompilerMessageKey String errorKey, Object... args)
      Create a new JavaExpressionParseException.
      Parameters:
      errorKey - the error message key
      args - the arguments to the error message key
    • JavaExpressionParseException

      public JavaExpressionParseException(@Nullable Throwable cause, @CompilerMessageKey String errorKey, Object... args)
      Create a new JavaExpressionParseException.
      Parameters:
      cause - cause
      errorKey - the error message key
      args - the arguments to the error message key
  • Method Details

    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • getDiagMessage

      public DiagMessage getDiagMessage()
      Return a DiagMessage that can be used for error reporting.
      Returns:
      a DiagMessage that can be used for error reporting
    • isFlowParseError

      public boolean isFlowParseError()