Construct a ParserError with a message, token and optional causing error.
The error message
The token being parsed when the exception occurred
The causing error
The error, if exists, that caused this error
The error message
The name of the error, which is generally the constructor name
The token being parsed during the exception
A value to identify the error from other errors
Generated using TypeDoc
Thrown when there is an exception during the parsing stage