MediaWiki REL1_35
MediaWiki\Hook\LogExceptionHook Interface Reference

Stable to implement. 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

Stable to implement.

Definition at line 12 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: