Ouzo\ExceptionHandling\ErrorHandler::errorHandler PHP Method

errorHandler() public static method

public static errorHandler ( $errorNumber, $errorString, $errorFile, $errorLine )
    public static function errorHandler($errorNumber, $errorString, $errorFile, $errorLine)
    {
        if (self::stopsExecution($errorNumber)) {
            self::exceptionHandler(new ErrorException($errorString, $errorNumber, 0, $errorFile, $errorLine));
        } else {
            throw new ErrorException($errorString, $errorNumber, 0, $errorFile, $errorLine);
        }
    }