PHP Class Neos\Flow\Error\ErrorHandler

Show file Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$exceptionalErrors array

Public Methods

Method Description
__construct ( ) Constructs this error handler - registers itself as the default error handler.
handleError ( integer $errorLevel, string $errorMessage, string $errorFile, integer $errorLine ) : void Handles an error by converting it into an exception.
setExceptionalErrors ( array $exceptionalErrors ) : void Defines which error levels result should result in an exception thrown.

Method Details

__construct() public method

Constructs this error handler - registers itself as the default error handler.
public __construct ( )

handleError() public method

If error reporting is disabled, either in the php.ini or temporarily through the shut-up operator "@", no exception will be thrown.
public handleError ( integer $errorLevel, string $errorMessage, string $errorFile, integer $errorLine ) : void
$errorLevel integer The error level - one of the E_* constants
$errorMessage string The error message
$errorFile string Name of the file the error occurred in
$errorLine integer Line number where the error occurred
return void

setExceptionalErrors() public method

Defines which error levels result should result in an exception thrown.
public setExceptionalErrors ( array $exceptionalErrors ) : void
$exceptionalErrors array An array of E_* error levels
return void

Property Details

$exceptionalErrors protected property

protected array $exceptionalErrors
return array