MediaWiki  master
ErrorReporter.php
Go to the documentation of this file.
1 <?php
2 
4 
7 use Throwable;
8 
15 interface ErrorReporter {
16 
22  public function reportError( Throwable $error, Handler $handler, RequestInterface $request );
23 
24 }
Base class for REST route handlers.
Definition: Handler.php:17
An ErrorReporter internally reports an error that happened during the handling of a request.
reportError(Throwable $error, Handler $handler, RequestInterface $request)
A request interface similar to PSR-7's ServerRequestInterface.