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
An exception that indicates a parse error. Call
getDiagMessage() to obtain a DiagMessage that can be used for error reporting.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJavaExpressionParseException(@CompilerMessageKey String errorKey, Object... args) Create a new JavaExpressionParseException.JavaExpressionParseException(@Nullable Throwable cause, @CompilerMessageKey String errorKey, Object... args) Create a new JavaExpressionParseException. -
Method Summary
Modifier and TypeMethodDescriptionReturn a DiagMessage that can be used for error reporting.booleanMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
args
The arguments to the error message key.
-
-
Constructor Details
-
JavaExpressionParseException
Create a new JavaExpressionParseException.- Parameters:
errorKey- the error message keyargs- the arguments to the error message key
-
JavaExpressionParseException
public JavaExpressionParseException(@Nullable Throwable cause, @CompilerMessageKey String errorKey, Object... args) Create a new JavaExpressionParseException.- Parameters:
cause- causeerrorKey- the error message keyargs- the arguments to the error message key
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
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()
-