class ParserException extends Exception (View source)

Exception thrown by the parser.

Properties

Token $token The token that produced this error.

Methods

__construct(string $msg = '', Token|null $token = null, int $code = 0)

No description

Details

__construct(string $msg = '', Token|null $token = null, int $code = 0)

Parameters

string $msg the message of this exception
Token|null $token the token that produced this exception
int $code the code of this error