public function exceptionHandler($e)
    {
        http_response_code(500);

        $e = $this->runHandlers($e);

        if (!$this->silenceErrors) {
            $formattedResponse = $this->runFormatters($e);
            print $formattedResponse;
        }

        if ($this->silenceErrors &&
            isset($this->errorPage) &&
            !($e instanceof ErrorException)
        ) {
            ob_start();
            $response = $this->errorPage->format($e);
            ob_end_clean();
            print $response;
            return;
        }
    }
public function exceptionHandler($e)
    {
        http_response_code(500);

        $e = $this->runHandlers($e);

        if (!$this->silenceErrors) {
            $formattedResponse = $this->runFormatters($e);
            print $formattedResponse;
        }

        if ($this->silenceErrors &&
            isset($this->errorPage) &&
            !($e instanceof ErrorException)
        ) {
            ob_start();
            $response = $this->errorPage->format($e);
            ob_end_clean();
            print $response;
            return;
        }
    }
public function exceptionHandler ( $ e ) { http_response_code ( 500 ) ; $ e = $ this -> runHandlers ( $ e ) ; if ( ! $ this -> silenceErrors ) { $ formattedResponse = $ this -> runFormatters ( $ e ) ; print $ formattedResponse ; } if ( $ this -> silenceErrors && isset ( $ this -> errorPage ) && ! ( $ e instanceof ErrorException ) ) { ob_start ( ) ; $ response = $ this -> errorPage -> format ( $ e ) ; ob_end_clean ( ) ; print $ response ; return ; } }
An exception handler, per the documentation in PHP. This function is
also used for the handling of errors, even when they are non-blocking.

@param \Exception $e
An exception handler per the documentation in PHP . This function is also used for the handling of errors even when they are non - blocking .