Пример #1
0
 public function runBare()
 {
     try {
         return parent::runBare();
     } catch (\Exception $e) {
         if (!$e instanceof \PHPUnit_Framework_AssertionFailedError) {
             \Nette\Diagnostics\Debugger::_exceptionHandler($e);
         }
         throw $e;
     }
 }
Пример #2
0
 /**
  * Log exception
  * @param \Exception $exception
  * @param boolean $shutdown
  */
 public static function _exceptionHandler(\Exception $exception, $shutdown = FALSE)
 {
     if (self::$sendErrors) {
         $ignore = false;
         foreach (self::$ignoredExceptions as $ignoredException) {
             if ($exception instanceof $ignoredException) {
                 $ignore = true;
             }
         }
         if (!$ignore) {
             Rollbar::report_exception($exception);
         }
     }
     // Log by nette debugger
     NDebugger::_exceptionHandler($exception, $shutdown);
 }