ErrorHandler that can be used to catch internal PHP errors and convert to an ErrorException instance.
More...
|
static | started () |
| Check if this error handler is active.
|
|
static | getNestedLevel () |
| Get the current nested level.
|
|
static | start ($errorLevel=\E_WARNING) |
| Starting the error handler.
|
|
static | stop ($throw=false) |
| Stopping the error handler.
|
|
static | clean () |
| Stop all active handler.
|
|
static | addError ($errno, $errstr= '', $errfile= '', $errline=0) |
| Add an error to the stack.
|
|
ErrorHandler that can be used to catch internal PHP errors and convert to an ErrorException instance.
static addError |
( |
|
$errno, |
|
|
|
$errstr = '' , |
|
|
|
$errfile = '' , |
|
|
|
$errline = 0 |
|
) |
| |
|
static |
Add an error to the stack.
- Parameters
-
int | $errno | |
string | $errstr | |
string | $errfile | |
int | $errline | |
- Returns
- void
Stop all active handler.
- Returns
- void
static getNestedLevel |
( |
| ) |
|
|
static |
Get the current nested level.
- Returns
- int
static start |
( |
|
$errorLevel = \E_WARNING | ) |
|
|
static |
Starting the error handler.
- Parameters
-
Check if this error handler is active.
- Returns
- bool
static stop |
( |
|
$throw = false | ) |
|
|
static |
Stopping the error handler.
- Parameters
-
bool | $throw | Throw the ErrorException if any |
- Returns
- null|ErrorException
- Exceptions
-
ErrorException | If an error has been catched and $throw is true |