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 | |
3 | namespace MediaWiki\Rest\Reporter; |
4 | |
5 | use MediaWiki\Rest\Handler; |
6 | use MediaWiki\Rest\RequestInterface; |
7 | use Throwable; |
8 | |
9 | /** |
10 | * An ErrorReporter internally reports an error that happened during the handling of a request. |
11 | * It must have no effect on the response sent to the client. |
12 | * |
13 | * @since 1.38 |
14 | */ |
15 | interface ErrorReporter { |
16 | |
17 | /** |
18 | * @param Throwable $error |
19 | * @param Handler|null $handler |
20 | * @param RequestInterface $request |
21 | */ |
22 | public function reportError( Throwable $error, ?Handler $handler, RequestInterface $request ); |
23 | |
24 | } |