MediaWiki
REL1_19
|
Handler class for MWExceptions. More...
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. |
Handler class for MWExceptions.
Definition at line 471 of file Exception.php.
static MWExceptionHandler::escapeEchoAndDie | ( | $ | message | ) | [static, private] |
Print a message after escaping it and converting newlines to
Use this for non-command line failures.
$message | String Failure text |
Definition at line 550 of file Exception.php.
References echo.
Referenced by report().
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().
static MWExceptionHandler::installHandler | ( | ) | [static] |
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)
$message | String Failure text |
Definition at line 535 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 482 of file Exception.php.
References $wgShowExceptionDetails, escapeEchoAndDie(), MWException\isCommandLine(), and printError().
Referenced by handle().