Wikibase
MediaWiki Wikibase extension
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. More...
 

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\RethrowingExceptionHandler, Wikibase\Lib\Reporting\ReportingExceptionHandler, and Wikibase\Lib\Reporting\LogWarningExceptionHandler.


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