Go to the source code of this file.
Classes | |
class | MWException |
MediaWiki exception. More... | |
class | FatalError |
Exception class which takes an HTML error message, and does not produce a backtrace. More... | |
class | ErrorPageError |
Functions | |
wfInstallExceptionHandler () | |
Install an exception handler for MediaWiki exception types. | |
wfReportException (Exception $e) | |
Report an exception to the user. | |
wfPrintError ($message) | |
Print a message, if possible to STDERR. | |
wfExceptionHandler ($e) | |
Exception handler which simulates the appropriate catch() handling:. |
wfExceptionHandler | ( | $ | e | ) |
Exception handler which simulates the appropriate catch() handling:.
try { ... } catch ( MWException $e ) { $e->report(); } catch ( Exception $e ) { echo $e->__toString(); }
Definition at line 342 of file Exception.php.
References $wgFullyInitialised, wfLogProfilingData(), and wfReportException().
wfInstallExceptionHandler | ( | ) |
Install an exception handler for MediaWiki exception types.
Definition at line 273 of file Exception.php.
wfPrintError | ( | $ | message | ) |
Print a message, if possible to STDERR.
Use this in command line mode only (see isCommandLine)
Definition at line 320 of file Exception.php.
Referenced by MWException::report(), and wfReportException().
wfReportException | ( | Exception $ | e | ) |
Report an exception to the user.
Definition at line 280 of file Exception.php.
References $GLOBALS, MWException::isCommandLine(), and wfPrintError().
Referenced by wfExceptionHandler().