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');
    }