Example #1
0
 /**
  * @param \Exception|\ParseError $e
  */
 public function exceptionHandler($e)
 {
     if ($this->mode === 'development') {
         $trace = $e->getTrace();
     } else {
         $trace = $e->getTraceAsString();
     }
     $this->addHandler($e->getCode(), $e->getMessage(), $e->getFile(), $e->getLine(), $trace);
 }