MediaWiki  master
MediaWiki\Rest\Reporter\ErrorReporter Interface Reference

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

Inheritance diagram for MediaWiki\Rest\Reporter\ErrorReporter:

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$handler
RequestInterface$request

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


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