public function handle($throwable)
    {
        if ($throwable instanceof Exception) {
            $response = $this->handler->handleException($this->defaultRequest, $this->defaultResponse, $throwable);
        } elseif ($throwable instanceof Throwable) {
            $response = $this->handler->handleThrowable($this->defaultRequest, $this->defaultResponse, $throwable);
        } else {
            return false;
        }

        if ($response instanceof ResponseInterface) {
            $this->renderResponse($response);
            return true;
        } else {
            return false;
        }
    }
public function handle($throwable)
    {
        if ($throwable instanceof Exception) {
            $response = $this->handler->handleException($this->defaultRequest, $this->defaultResponse, $throwable);
        } elseif ($throwable instanceof Throwable) {
            $response = $this->handler->handleThrowable($this->defaultRequest, $this->defaultResponse, $throwable);
        } else {
            return false;
        }

        if ($response instanceof ResponseInterface) {
            $this->renderResponse($response);
            return true;
        } else {
            return false;
        }
    }
public function handle ( $ throwable ) { if ( $ throwable instanceof Exception ) { $ response = $ this -> handler -> handleException ( $ this -> defaultRequest , $ this -> defaultResponse , $ throwable ) ; } elseif ( $ throwable instanceof Throwable ) { $ response = $ this -> handler -> handleThrowable ( $ this -> defaultRequest , $ this -> defaultResponse , $ throwable ) ; } else { return false ; } if ( $ response instanceof ResponseInterface ) { $ this -> renderResponse ( $ response ) ; return true ; } else { return false ; } }
Handle a throwable, and return whether it was handled and the remaining stack should be aborted.

@param Exception|Throwable|mixed $throwable

@return bool
Handle a throwable and return whether it was handled and the remaining stack should be aborted .