Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Reporting\ReportingExceptionHandler Class Reference

ReportingExceptionHandler reports exceptions to a MessageReporter. More...

+ Inheritance diagram for Wikibase\Lib\Reporting\ReportingExceptionHandler:
+ Collaboration diagram for Wikibase\Lib\Reporting\ReportingExceptionHandler:

Public Member Functions

 __construct (MessageReporter $reporter, array $ignored=[])
 
 handleException (Exception $exception, $errorCode, $explanation)
 Reports the exception to the MessageReporter defined in the constructor call. More...
 

Protected Attributes

 $reporter
 

Private Attributes

 $ignored
 

Detailed Description

ReportingExceptionHandler reports exceptions to a MessageReporter.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Reporting\ReportingExceptionHandler::__construct ( MessageReporter  $reporter,
array  $ignored = [] 
)

Member Function Documentation

◆ handleException()

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

Reports the exception to the MessageReporter defined in the constructor call.

See also
ExceptionHandler::handleException()
Parameters
Exception$exception
string$errorCode
string$explanation

Implements Wikibase\Lib\Reporting\ExceptionHandler.

Member Data Documentation

◆ $ignored

Wikibase\Lib\Reporting\ReportingExceptionHandler::$ignored
private

◆ $reporter

Wikibase\Lib\Reporting\ReportingExceptionHandler::$reporter
protected

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