Exemplo n.º 1
0
 public function __construct($context, $reason = null)
 {
     $this->context = $context;
     if (is_object($reason) || is_array($reason)) {
         $this->info = (object) $reason;
     }
     parent::__construct("Parsing failed for " . $this->context->getFile() . ($this->info !== null ? " @ " . $this->info->line . ":" . $this->info->column . ", expected " . implode(", ", $this->info->expected) : " - " . $reason));
 }