MediaWiki  REL1_19
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.

Static Private Member Functions

static escapeEchoAndDie ($message)
 Print a message after escaping it and converting newlines to
Use this for non-command line failures.

Detailed Description

Handler class for MWExceptions.

Definition at line 471 of file Exception.php.


Member Function Documentation

static MWExceptionHandler::escapeEchoAndDie ( message) [static, private]

Print a message after escaping it and converting newlines to
Use this for non-command line failures.

Parameters:
$messageString Failure text

Definition at line 550 of file Exception.php.

References echo.

Referenced by report().

Here is the caller graph for this function:

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 566 of file Exception.php.

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

Referenced by MediaWiki\run().

Here is the call graph for this function:

Here is the caller graph for this function:

Install an exception handler for MediaWiki exception types.

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

References echo.

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

Here is the caller graph for this function:

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

Report an exception to the user.

Definition at line 482 of file Exception.php.

References $wgShowExceptionDetails, escapeEchoAndDie(), MWException\isCommandLine(), and printError().

Referenced by handle().

Here is the call graph for this function:

Here is the caller graph for this function:


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