public static class Parser.ParserException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
java.lang.String |
message
A printable error message.
|
Lex.Token |
token
The current token when the syntax error was detected.
|
Constructor and Description |
---|
ParserException(Lex.Token token,
java.lang.String message)
Construct an exception object encapsulating a
token and a printable message within a throw statement.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Return a string containing an error message which
includes both, the token and the error message.
|
public final Lex.Token token
public final java.lang.String message
public ParserException(Lex.Token token, java.lang.String message)
token
- current token.message
- printable error message.