MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onLogException ( $e, $suppressed) | |
This hook is called before an exception (or PHP error) is logged. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "LogException" to register handlers implementing this interface.
Definition at line 15 of file LogExceptionHook.php.
MediaWiki\Hook\LogExceptionHook::onLogException | ( | $e, | |
$suppressed ) |
This hook is called before an exception (or PHP error) is logged.
This is meant for integration with external error aggregation services; returning false will NOT prevent logging.
Exception | ErrorException | $e | Exception (in case of a plain old PHP error, a wrapping ErrorException) |
bool | $suppressed | True if the error was suppressed via error_reporting()/wfSuppressWarnings() |
Implemented in MediaWiki\HookContainer\HookRunner.