public function caughtException($e)
    {
        $this->hook('caught-exception', array($e));
        echo get_class($e), ': '.$e->getMessage();
        exit;
    }
public function caughtException($e)
    {
        $this->hook('caught-exception', array($e));
        echo get_class($e), ': '.$e->getMessage();
        exit;
    }
public function caughtException ( $ e ) { $ this -> hook ( 'caught-exception' , array ( $ e ) ) ; echo get_class ( $ e ) , ': ' . $ e -> getMessage ( ) ; exit ; }
Is executed if exception is raised during execution.
Re-define to have custom handling of exceptions system-wide.

@param Exception $e
Is executed if exception is raised during execution . Re - define to have custom handling of exceptions system - wide .