Пример #1
0
 public function __construct($message, $srcLine = 0)
 {
     parent::__construct($message . ' on line ' . $srcLine);
     $this->srcLine = $srcLine;
 }
Пример #2
0
 public function __construct($tokenType)
 {
     parent::__construct('Invalid token type ' . $tokenType);
     $this->tokenType = $tokenType;
 }
Пример #3
0
 public function __construct($index)
 {
     parent::__construct('No token found in the TokenStream at index ' . $index);
 }