Example #1
0
 /**
  * Exception handler called internally by PHP's set_exception_handler
  *
  * @param \Exception $exception
  * @return boolean
  */
 public function handleException(\Exception $exception)
 {
     if ($this->config->isTrace()) {
         $this->backtrace->setTraces($exception->getTrace());
     }
     return $this->output(static::ERROR, $exception->getMessage(), ['file' => $exception->getFile(), 'line' => $exception->getLine()]);
 }