MediaWiki  master
MediaWiki\Rest\Reporter\PHPErrorReporter Class Reference

Error reporter based on php's native trigger_error() method. More...

Inheritance diagram for MediaWiki\Rest\Reporter\PHPErrorReporter:
Collaboration diagram for MediaWiki\Rest\Reporter\PHPErrorReporter:

Public Member Functions

 __construct ( $level=E_USER_WARNING)
 
 reportError (Throwable $error, Handler $handler, RequestInterface $request)
 

Detailed Description

Error reporter based on php's native trigger_error() method.

Since
1.38

Definition at line 13 of file PHPErrorReporter.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Rest\Reporter\PHPErrorReporter::__construct (   $level = E_USER_WARNING)
Parameters
int$levelThe error level to pass to trigger_error

Definition at line 21 of file PHPErrorReporter.php.

Member Function Documentation

◆ reportError()

MediaWiki\Rest\Reporter\PHPErrorReporter::reportError ( Throwable  $error,
Handler  $handler,
RequestInterface  $request 
)
Parameters
Throwable$error
Handler$handler
RequestInterface$request

Implements MediaWiki\Rest\Reporter\ErrorReporter.

Definition at line 30 of file PHPErrorReporter.php.


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