Inheritance: extends PhpException
Ejemplo n.º 1
0
 /**
  * Capture any errors at the end script (especially runtime errors)
  */
 public static function runtimeShutdown()
 {
     $e = error_get_last();
     if (!empty($e)) {
         // Record Error
         PhpError::errorHandler($e['type'], $e['message'], $e['file'], $e['line']);
     }
 }
Ejemplo n.º 2
0
 /**
  * Called when something happened that causes the CVS backend to
  * fail.
  */
 function _cvsError($msg = "no message", $errline = 0, $errfile = "lib/WikiDB/backend/cvs.php", $errno = EM_FATAL_ERRORS)
 {
     $err = new PhpError($errno, "[CVS(be)]: " . $msg, $errfile, $errline);
     // send error to the debug routine
     $this->_cvsDebug($err->asXML());
     // send the error to the error manager
     $GLOBALS['ErrorManager']->handleError($err);
 }