MediaWiki
REL1_20
|
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. |
Handler class for MWExceptions.
Definition at line 601 of file Exception.php.
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().
static MWExceptionHandler::installHandler | ( | ) | [static] |
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)
$message | string 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().