includes/Exception.php File Reference

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:.


Function Documentation

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().


Generated on Sat Sep 5 02:08:06 2009 for MediaWiki by  doxygen 1.5.9