MediaWiki REL1_39
MediaWiki\Hook\LogExceptionHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Hook\LogExceptionHook:

Public Member Functions

 onLogException ( $e, $suppressed)
 This hook is called before an exception (or PHP error) is logged.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "LogException" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 15 of file LogExceptionHook.php.

Member Function Documentation

◆ onLogException()

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.

Since
1.35
Parameters
Exception | ErrorException$eException (in case of a plain old PHP error, a wrapping ErrorException)
bool$suppressedTrue if the error was suppressed via error_reporting()/wfSuppressWarnings()
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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