MediaWiki  REL1_21
MWExceptionHandler Class Reference

Handler class for MWExceptions. More...

List of all members.

Static Public Member Functions

static handle ($e)
 Exception handler which simulates the appropriate catch() handling:
static installHandler ()
 Install an exception handler for MediaWiki exception types.
static printError ($message)
 Print a message, if possible to STDERR.

Static Protected Member Functions

static report (Exception $e)
 Report an exception to the user.

Detailed Description

Handler class for MWExceptions.

Definition at line 624 of file Exception.php.


Member Function Documentation

static MWExceptionHandler::handle ( e) [static]

Exception handler which simulates the appropriate catch() handling:

try { ... } catch ( MWException $e ) { $e->report(); } catch ( Exception $e ) { echo $e->__toString(); }

Definition at line 710 of file Exception.php.

References $wgFullyInitialised, global, report(), and wfLogProfilingData().

Install an exception handler for MediaWiki exception types.

Definition at line 628 of file Exception.php.

References array().

static MWExceptionHandler::printError ( message) [static]

Print a message, if possible to STDERR.

Use this in command line mode only (see isCommandLine)

Parameters:
string$messageFailure text

Definition at line 689 of file Exception.php.

References echo.

Referenced by MWException\report(), and report().

static MWExceptionHandler::report ( Exception $  e) [static, protected]

Report an exception to the user.

Definition at line 635 of file Exception.php.

References echo, global, MWException\isCommandLine(), and printError().

Referenced by handle().


The documentation for this class was generated from the following file: