Example #1
0
 /**
  * @param Throwable $e
  *
  * @return ErrorResponse
  */
 public function render(Throwable $e) : ErrorResponse
 {
     if ($this->app->isLocal()) {
         return $this->whoops->render($e);
     } else {
         return $this->formatter->render($e);
     }
 }
Example #2
0
 public function test_it_renders_a_console_exception()
 {
     $this->formatter->render(new Exception('Exception message'));
 }