MediaWiki master
MWErrorReporter.php
Go to the documentation of this file.
1<?php
2
4
8use Throwable;
9
16
22 public function reportError( Throwable $error, ?Handler $handler, RequestInterface $request ) {
23 MWExceptionHandler::rollbackPrimaryChangesAndLog(
24 $error,
25 MWExceptionHandler::CAUGHT_BY_ENTRYPOINT
26 );
27 }
28
29}
Handler class for MWExceptions.
Base class for REST route handlers.
Definition Handler.php:21
Error reporter based on MWExceptionHandler.
reportError(Throwable $error, ?Handler $handler, RequestInterface $request)
An ErrorReporter internally reports an error that happened during the handling of a request.
A request interface similar to PSR-7's ServerRequestInterface.
Copyright (C) 2011-2020 Wikimedia Foundation and others.