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 JavaExpressionParseException
Returns aJavaExpressionParseException
with error key "flowexpr.parse.error" for the expressionexprString
with explanationexplanation
.Object[]
getArgs()
Returns The arguments to the error message key.Returns the error message key.boolean
Returns 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 aJavaExpressionParseException
with error key "flowexpr.parse.error" for the expressionexprString
with explanationexplanation
.- Parameters:
exprString
- the string that could not be parsedexplanation
- an explanation of the parse failure- Returns:
- a
JavaExpressionParseException
for the expressionexprString
with 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:
getMessage
in classThrowable
-
isFlowParseError
public boolean isFlowParseError()Returns true if this is a flowexpr.parse.error.- Returns:
- true if this is a flowexpr.parse.error
-
toString
-