MediaWiki REL1_39
ErrorReporter.php
Go to the documentation of this file.
1<?php
2
4
7use Throwable;
8
15interface ErrorReporter {
16
22 public function reportError( Throwable $error, Handler $handler, RequestInterface $request );
23
24}
Base class for REST route handlers.
Definition Handler.php:20
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.
Copyright (C) 2011-2020 Wikimedia Foundation and others.