ErrorHandler that can be used to catch internal PHP errors and convert to a ErrorException instance.

 Methods

Add an error to the stack

addError(int $errno, string $errstr, string $errfile, int $errline) : void

Parameters

$errno

int

$errstr

string

$errfile

string

$errline

int

Stop all active handler

clean() : void

Get the current nested level

getNestedLevel() : int

Returns

int

Starting the error handler

start(int $errorLevel) 

Parameters

$errorLevel

int

Check if this error handler is active

started() : bool

Returns

bool

Stopping the error handler

stop(bool $throw) : null | \ErrorException

Parameters

$throw

bool

Throw the ErrorException if any

Exceptions

\ErrorException If an error has been catched and $throw is true

Returns

 Properties

 

Active stack

$stack : array