MediaWiki
REL1_41
ErrorReporter.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Rest\Reporter
;
4
5
use
MediaWiki\Rest\Handler
;
6
use
MediaWiki\Rest\RequestInterface
;
7
use Throwable;
8
15
interface
ErrorReporter
{
16
22
public
function
reportError
( Throwable $error, ?
Handler
$handler,
RequestInterface
$request );
23
24
}
MediaWiki\Rest\Handler
Base class for REST route handlers.
Definition
Handler.php:20
MediaWiki\Rest\Reporter\ErrorReporter
An ErrorReporter internally reports an error that happened during the handling of a request.
Definition
ErrorReporter.php:15
MediaWiki\Rest\Reporter\ErrorReporter\reportError
reportError(Throwable $error, ?Handler $handler, RequestInterface $request)
MediaWiki\Rest\RequestInterface
A request interface similar to PSR-7's ServerRequestInterface.
Definition
RequestInterface.php:39
MediaWiki\Rest\Handler
Copyright (C) 2011-2020 Wikimedia Foundation and others.
Definition
AbstractContributionHandler.php:3
MediaWiki\Rest\Reporter
Definition
ErrorReporter.php:3
includes
Rest
Reporter
ErrorReporter.php
Generated on Wed Nov 27 2024 07:24:40 for MediaWiki by
1.10.0