Public Member Functions | |
| __construct (bool $greedy=true) | |
| addListener ($callback) | |
| beGreedy () | |
| beLazy () | |
| handleException ($obj) | |
| handleHttpError ($code) | |
| handlePhpError ($code, $message, $file, $line) | |
| null () | |
| renderSfe ($obj) | |
| setCss ($css) | |
Static Public Member Functions | |
| static | errorCodeToString ($code) |
| static | getInstance () |
Static Public Attributes | |
| static | $instance |
Protected Member Functions | |
| clearOutputBuffers () | |
| formatAsMarkdown ($trigger, $message, $code=null, $file=null, $line=null, $stacktrace=null) | |
| formatStacktraceArg ($arg) | |
| formatStacktraceArgs ($args) | |
| notifyListeners ($trigger, $message, $code=null, $file=null, $line=null, $stacktrace=null) | |
| render ($trigger, $message, $code=null, $file=null, $line=null, $stacktrace=null) | |
| renderHtml ($trigger, $message, $code=null, $file=null, $line=null, $stacktrace=null) | |
| libAllure\ErrorHandler::__construct | ( | bool | $greedy = true | ) |
Constructs the new class.
| $greedy | Whether or not this class can be greedy: is allowed to capture all types of errors that it can bind to. |
| libAllure\ErrorHandler::addListener | ( | $callback | ) |
Register a callback invoked after error_log when an error is rendered.
The callback receives: $trigger, $message, $code, $file, $line, $stacktrace.
| callable | $callback |
|
static |
|
protected |
Print the error out.
| $trigger | What triggored this error. |
| $message | The message for the error. |
| $code | The code for the error. |
| $file | The file that this error came from. |
| $line | The line that this error came from. |
| $stacktrace | A stacktrace leading up to this error ( should be a array). |