public function exceptionHandler($e) : void
    {
        $this->setError(
            (int) $e->getCode(),
            (string) $e->getMessage(),
            (string) $e->getFile(),
            (int) $e->getLine(),
            (string) get_class($e),
            $e->getTrace()
        );

        View::render('500.php', (object) $this->errors);
    }
public function exceptionHandler($e) : void
    {
        $this->setError(
            (int) $e->getCode(),
            (string) $e->getMessage(),
            (string) $e->getFile(),
            (int) $e->getLine(),
            (string) get_class($e),
            $e->getTrace()
        );

        View::render('500.php', (object) $this->errors);
    }
public function exceptionHandler ( $ e ) : void { $ this -> setError ( ( int ) $ e -> getCode ( ) , ( string ) $ e -> getMessage ( ) , ( string ) $ e -> getFile ( ) , ( int ) $ e -> getLine ( ) , ( string ) get_class ( $ e ) , $ e -> getTrace ( ) ) ; View :: render ( '500.php' , ( object ) $ this -> errors ) ; }
exception handler.

@param object $e exception object

@return void throw exception based on the error type
exception handler .