Class JavaExpressionParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.checkerframework.dataflow.expression.JavaExpressionParseException
- All Implemented Interfaces:
Serializable
An exception that indicates a parse error.
- 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 TypeMethodDescriptionstatic JavaExpressionParseExceptionReturns aJavaExpressionParseExceptionwith error key "flowexpr.parse.error" for the expressionexprStringwith explanationexplanation.Object[]getArgs()Returns The arguments to the error message key.Returns the error message key.booleanReturns true if this is a flowexpr.parse.error.toString()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
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
-
construct
Returns aJavaExpressionParseExceptionwith error key "flowexpr.parse.error" for the expressionexprStringwith explanationexplanation.- Parameters:
exprString- the string that could not be parsedexplanation- an explanation of the parse failure- Returns:
- a
JavaExpressionParseExceptionfor the expressionexprStringwith explanationexplanation
-
getErrorKey
Returns the error message key.- Returns:
- the error message key
-
getArgs
Returns The arguments to the error message key.- Returns:
- the arguments to the error message key
-
getMessage
- Overrides:
getMessagein classThrowable
-
isFlowParseError
public boolean isFlowParseError()Returns true if this is a flowexpr.parse.error.- Returns:
- true if this is a flowexpr.parse.error
-
toString
-