A simple subclass of RuntimeException that indicates errors when trying to parse the input to Parser. More...

Public Member Functions | |
| 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. | |
| Token | getToken () |
| Get the token. | |
| String | getMessage () |
| Overrides RuntimeException.getMessage to add the token information into the error message. | |
Private Attributes | |
| Token | token = null |
| the token that caused the error | |
Static Private Attributes | |
| static final long | serialVersionUID = -1009747984332258423L |
A simple subclass of RuntimeException that indicates errors when trying to parse the input to Parser.
The exception stores the token that caused the error.
Definition at line 33 of file ParserException.java.
| uk.co.cogitolearning.cogpar.ParserException.ParserException | ( | String | message | ) |
Construct the evaluation exception with a message.
| message | the message containing the cause of the exception |
Definition at line 44 of file ParserException.java.
| uk.co.cogitolearning.cogpar.ParserException.ParserException | ( | String | message, |
| Token | token | ||
| ) |
Construct the evaluation exception with a message and a token.
| message | the message containing the cause of the exception |
| token | the token that caused the exception |
Definition at line 54 of file ParserException.java.
| String uk.co.cogitolearning.cogpar.ParserException.getMessage | ( | ) |
Overrides RuntimeException.getMessage to add the token information into the error message.
Definition at line 75 of file ParserException.java.
| Token uk.co.cogitolearning.cogpar.ParserException.getToken | ( | ) |
Get the token.
Definition at line 64 of file ParserException.java.
1.8.1.2