Neos\Flow\Error\ErrorHandler::handleError PHP Метод

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
    public function handleError($errorLevel, $errorMessage, $errorFile, $errorLine)
    {
        if (error_reporting() === 0) {
            return;
        }
        $errorLevels = [E_WARNING => 'Warning', E_NOTICE => 'Notice', E_USER_ERROR => 'User Error', E_USER_WARNING => 'User Warning', E_USER_NOTICE => 'User Notice', E_STRICT => 'Runtime Notice', E_RECOVERABLE_ERROR => 'Catchable Fatal Error'];
        if (in_array($errorLevel, (array) $this->exceptionalErrors)) {
            if (class_exists(FlowError\Exception::class)) {
                throw new FlowError\Exception($errorLevels[$errorLevel] . ': ' . $errorMessage . ' in ' . $errorFile . ' line ' . $errorLine, 1);
            } else {
                throw new \Exception($errorLevels[$errorLevel] . ': ' . $errorMessage . ' in ' . $errorFile . ' line ' . $errorLine, 1);
            }
        }
    }