PHP Класс Neos\Flow\Error\ErrorHandler

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$exceptionalErrors array

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

handleError() публичный Метод

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
Результат void

setExceptionalErrors() публичный Метод

Defines which error levels result should result in an exception thrown.
public setExceptionalErrors ( array $exceptionalErrors ) : void
$exceptionalErrors array An array of E_* error levels
Результат void

Описание свойств

$exceptionalErrors защищенное свойство

protected array $exceptionalErrors
Результат array