public function exceptionHandler(Exception $exc)
    {
        $error = array(
            'code' => $exc->getCode(),
            'file' => $exc->getFile(),
            'line' => $exc->getLine(),
            'message' => $exc->getMessage(),
            'backtrace' => $this->log_backtrace ? gplcart_backtrace() : array()
        );

        $this->log('php_exception', $error, 'danger', false);
        echo $this->getFormattedError($error, 'Exception');
    }
public function exceptionHandler(Exception $exc)
    {
        $error = array(
            'code' => $exc->getCode(),
            'file' => $exc->getFile(),
            'line' => $exc->getLine(),
            'message' => $exc->getMessage(),
            'backtrace' => $this->log_backtrace ? gplcart_backtrace() : array()
        );

        $this->log('php_exception', $error, 'danger', false);
        echo $this->getFormattedError($error, 'Exception');
    }
public function exceptionHandler ( Exception $ exc ) { $ error = array ( 'code' => $ exc -> getCode ( ) , 'file' => $ exc -> getFile ( ) , 'line' => $ exc -> getLine ( ) , 'message' => $ exc -> getMessage ( ) , 'backtrace' => $ this -> log_backtrace ? gplcart_backtrace ( ) : array ( ) ) ; $ this -> log ( 'php_exception' , $ error , 'danger' , false ) ; echo $ this -> getFormattedError ( $ error , 'Exception' ) ; }
Common exception handler
@param Exception $exc
Common exception handler