Class JavaExpressionParseUtil.JavaExpressionParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.checkerframework.framework.util.JavaExpressionParseUtil.JavaExpressionParseException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- JavaExpressionParseUtil
public static class JavaExpressionParseUtil.JavaExpressionParseException extends java.lang.Exception
An exception that indicates a parse error. CallgetDiagMessage()
to obtain aDiagMessage
that can be used for error reporting.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Object[]
args
The arguments to the error message key.
-
Constructor Summary
Constructors Constructor Description JavaExpressionParseException(@CompilerMessageKey java.lang.String errorKey, java.lang.Object... args)
Create a new JavaExpressionParseException.JavaExpressionParseException(@Nullable java.lang.Throwable cause, @CompilerMessageKey java.lang.String errorKey, java.lang.Object... args)
Create a new JavaExpressionParseException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiagMessage
getDiagMessage()
Return a DiagMessage that can be used for error reporting.java.lang.String
getMessage()
boolean
isFlowParseError()
-
-
-
Constructor Detail
-
JavaExpressionParseException
public JavaExpressionParseException(@CompilerMessageKey java.lang.String errorKey, java.lang.Object... args)
Create a new JavaExpressionParseException.- Parameters:
errorKey
- the error message keyargs
- the arguments to the error message key
-
JavaExpressionParseException
public JavaExpressionParseException(@Nullable java.lang.Throwable cause, @CompilerMessageKey java.lang.String errorKey, java.lang.Object... args)
Create a new JavaExpressionParseException.- Parameters:
cause
- causeerrorKey
- the error message keyargs
- the arguments to the error message key
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.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()
-
-