MediaWiki  REL1_20
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 601 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 687 of file Exception.php.

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

Install an exception handler for MediaWiki exception types.

Definition at line 605 of file Exception.php.

static MWExceptionHandler::printError ( message) [static]

Print a message, if possible to STDERR.

Use this in command line mode only (see isCommandLine)

Parameters:
$messagestring Failure text

Definition at line 666 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 612 of file Exception.php.

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

Referenced by handle().


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