Пример #1
0
 /**
  * Handle exception (uncatched).
  *
  * @param \Throwable $exception
  */
 public function handleException($exception)
 {
     if (!$exception instanceof \Exception) {
         $exception = new \Exception("Can't handle exception thrown!");
     }
     // Log
     \Logger::error((string) $exception);
     // Whoops
     if ($this->whoops !== false) {
         $this->whoops->handleException($exception);
     }
 }