MediaWiki  master
MWErrorReporter.php
Go to the documentation of this file.
1 <?php
2 
4 
8 use Throwable;
9 
15 class MWErrorReporter implements ErrorReporter {
16 
22  public function reportError( Throwable $error, Handler $handler, RequestInterface $request ) {
24  $error,
25  MWExceptionHandler::CAUGHT_BY_ENTRYPOINT
26  );
27  }
28 
29 }
Handler class for MWExceptions.
static rollbackPrimaryChangesAndLog(Throwable $e, $catcher=self::CAUGHT_BY_OTHER)
Roll back any open database transactions and log the stack trace of the throwable.
Base class for REST route handlers.
Definition: Handler.php:19
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.