PHP Class Neos\Flow\Error\ErrorHandler

Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$exceptionalErrors array

Méthodes publiques

Méthode 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 méthode

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

handleError() public méthode

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
Résultat void

setExceptionalErrors() public méthode

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

Property Details

$exceptionalErrors protected_oe property

protected array $exceptionalErrors
Résultat array