MediaWiki master
MediaWiki\Rest\Reporter\ErrorReporter Interface Reference

An ErrorReporter internally reports an error that happened during the handling of a request. More...

Inherited by MediaWiki\Rest\Reporter\MWErrorReporter, and MediaWiki\Rest\Reporter\PHPErrorReporter.

Public Member Functions

 reportError (Throwable $error, ?Handler $handler, RequestInterface $request)
 

Detailed Description

An ErrorReporter internally reports an error that happened during the handling of a request.

It must have no effect on the response sent to the client.

Since
1.38

Definition at line 15 of file ErrorReporter.php.

Member Function Documentation

◆ reportError()

MediaWiki\Rest\Reporter\ErrorReporter::reportError ( Throwable $error,
?Handler $handler,
RequestInterface $request )
Parameters
Throwable$error
Handler | null$handler
RequestInterface$request

Implemented in MediaWiki\Rest\Reporter\MWErrorReporter, and MediaWiki\Rest\Reporter\PHPErrorReporter.


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