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

category Zend
package Zend_Stdlib

 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

Starting the error handler

start(int $errorLevel) 

Parameters

$errorLevel

int

Exceptions

\Zend\Stdlib\Exception\LogicException If already started

If the error handler has been started.

started() : bool

Returns

bool

Stopping the error handler

stop(bool $throw) : null | \ErrorException

Parameters

$throw

bool

Throw the ErrorException if any

Exceptions

\Zend\Stdlib\Exception\LogicException If not started before
\ErrorException If an error has been catched and $throw is true

Returns

 Properties

 

All errors as one instance of ErrorException using the previous exception support.

$errorException : null | \ErrorException

 

Flag to mark started

$started : bool