Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace MediaWiki\Hook;
4
5use ErrorException;
6use Exception;
7
8/**
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "LogException" to register handlers implementing this interface.
11 *
12 * @stable to implement
13 * @ingroup Hooks
14 */
15interface LogExceptionHook {
16    /**
17     * This hook is called before an exception (or PHP error) is logged. This is
18     * meant for integration with external error aggregation services; returning false
19     * will NOT prevent logging.
20     *
21     * @since 1.35
22     *
23     * @param Exception|ErrorException $e Exception (in case of a plain old PHP error,
24     *   a wrapping ErrorException)
25     * @param bool $suppressed True if the error was suppressed via
26     *   error_reporting()/wfSuppressWarnings()
27     * @return bool|void True or no return value to continue or false to abort
28     */
29    public function onLogException( $e, $suppressed );
30}