private static function validateError(string $message, bool $throws): bool
    {
        if ($throws) {
            throw new ValidatorException($message);
        }

        return false;
    }
private static function validateError(string $message, bool $throws): bool
    {
        if ($throws) {
            throw new ValidatorException($message);
        }

        return false;
    }
private static function validateError ( string $ message , bool $ throws ) : bool { if ( $ throws ) { throw new ValidatorException ( $ message ) ; } return false ; }
Throw a ValidatorException

@param string $message
@param bool   $throws

@return bool
@throws \Swoft\Exception\ValidatorException
Throw a ValidatorException