public function handle($exception)
    {
        $file = $exception->getFile();
        $line = $exception->getLine();
        $message = $exception->getMessage();
        $trace = $exception->getTrace();

        // Reverse and reset default order
        $trace = array_reverse($trace);

        // The name of thrown exception
        $class = get_class($exception);

        // Above variables will be available in the template
        require($this->templateFile);
    }
public function handle($exception)
    {
        $file = $exception->getFile();
        $line = $exception->getLine();
        $message = $exception->getMessage();
        $trace = $exception->getTrace();

        // Reverse and reset default order
        $trace = array_reverse($trace);

        // The name of thrown exception
        $class = get_class($exception);

        // Above variables will be available in the template
        require($this->templateFile);
    }
public function handle ( $ exception ) { $ file = $ exception -> getFile ( ) ; $ line = $ exception -> getLine ( ) ; $ message = $ exception -> getMessage ( ) ; $ trace = $ exception -> getTrace ( ) ; // Reverse and reset default order $ trace = array_reverse ( $ trace ) ; // The name of thrown exception $ class = get_class ( $ exception ) ; // Above variables will be available in the template require ( $ this -> templateFile ) ; }
Custom exception handler

@param \Exception $exception
@return void
Custom exception handler