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

package Default

 Methods

Add an error to the stack

addError(integer $errno, string $errstr = '', string $errfile = '', integer $errline = 0) : void
Static

Parameters

$errno

integer

$errstr

string

$errfile

string

$errline

integer

Stop all active handler

clean() : void
Static

Get the current nested level

getNestedLevel() : integer
Static

Returns

integer

Starting the error handler

start(integer $errorLevel = \E_WARNING
Static

Parameters

$errorLevel

integer

Check if this error handler is active

started() : boolean
Static

Returns

boolean

Stopping the error handler

stop(boolean $throw = false) : null | \ErrorException
Static

Parameters

$throw

boolean

Throw the ErrorException if any

Exceptions

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

Returns

null\ErrorException

 Properties

 

Active stack

$stack : array

Default

array()
Static