original_string: 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');
      }
code: 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');
      }
code_tokens: 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' ) ; }
docstring: Common exception handler
  @param Exception $exc
docstring_tokens: Common exception handler