Class ErrorHandler

Summary

Fully Qualified Name: Laminas\Stdlib\ErrorHandler

Description

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

Methods

Name Description Defined By
addError() Add an error to the stack ErrorHandler
clean() Stop all active handler ErrorHandler
getNestedLevel() Get the current nested level ErrorHandler
start() Starting the error handler ErrorHandler
started() Check if this error handler is active ErrorHandler
stop() Stopping the error handler ErrorHandler

Method Details

addError()

Add an error to the stack

Parameter Name Type Description
$errno int
$errstr string
$errfile string
$errline int

Returns: void

clean()

Stop all active handler

Returns: void

getNestedLevel()

Get the current nested level

Returns: int

start()

Starting the error handler

Parameter Name Type Description
$errorLevel int

Returns:

started()

Check if this error handler is active

Returns: bool

stop()

Stopping the error handler

Parameter Name Type Description
$throw bool Throw

Returns: null|\ErrorException

Top