Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Reporting\ExceptionHandler Interface Reference

Interface for objects that can handle exceptions. More...

+ Inheritance diagram for Wikibase\Lib\Reporting\ExceptionHandler:

Public Member Functions

 handleException (Exception $exception, $errorCode, $explanation)
 Handle the given exception.
 

Detailed Description

Interface for objects that can handle exceptions.

Author
Daniel Kinzler

Member Function Documentation

◆ handleException()

Wikibase\Lib\Reporting\ExceptionHandler::handleException ( Exception  $exception,
  $errorCode,
  $explanation 
)

Handle the given exception.

Typical ways to handle an exception are to re-throw it, ignore it or log it.

Parameters
Exception$exception
string$errorCode
string$explanation

Implemented in Wikibase\Lib\Reporting\LogWarningExceptionHandler, Wikibase\Lib\Reporting\ReportingExceptionHandler, and Wikibase\Lib\Reporting\RethrowingExceptionHandler.


The documentation for this interface was generated from the following file: