Esempio n. 1
0
 /**
  * @param \Throwable $e
  *
  * @return void
  */
 public function handleException($e)
 {
     if (!$e instanceof Exception) {
         $e = new FatalThrowableError($e);
     }
     $this->getExceptionHandler()->report($e);
     if ($this->app->runningInConsole()) {
         $this->renderForConsole($e);
     } else {
         $this->renderHttpResponse($e);
     }
 }
Esempio n. 2
0
 /**
  * @return bool
  */
 protected function runningUnitTests()
 {
     return $this->app->runningInConsole() && $this->app->runningUnitTests();
 }