public function __construct($message, $srcLine = 0) { parent::__construct($message . ' on line ' . $srcLine); $this->srcLine = $srcLine; }
public function __construct($tokenType) { parent::__construct('Invalid token type ' . $tokenType); $this->tokenType = $tokenType; }
public function __construct($index) { parent::__construct('No token found in the TokenStream at index ' . $index); }