public class ParserException extends RuntimeException
| Constructor and Description |
|---|
ParserException(String message)
Construct the evaluation exception with a message.
|
ParserException(String message,
Token token)
Construct the evaluation exception with a message and a token.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
Overrides RuntimeException.getMessage to add the token information
into the error message.
|
Token |
getToken()
Get the token.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ParserException(String message)
message - the message containing the cause of the exceptionpublic Token getToken()
public String getMessage()
getMessage in class ThrowableCopyright © 2017. All rights reserved.