public function __construct($pointer, $lastTokenPointer, \Exception $previous = null) { parent::__construct(sprintf('Attempted access to token pointer %d, last token pointer is %d', $pointer, $lastTokenPointer), 0, $previous); $this->pointer = $pointer; $this->lastTokenPointer = $lastTokenPointer; }