Exemplo n.º 1
0
 /**
  * @param Throwable $e
  */
 public function handleException(Throwable $e)
 {
     if (!in_array(get_class($e), $this->shouldNotHandle)) {
         foreach ($this->handlers as $handler) {
             $this->handle($e, $handler);
         }
     }
     $error = $this->render($e);
     $response = $this->factory()->make($error->getOutput(), $error->getStatus());
     $this->emitter->emit($response);
 }