# Path: anchorhub/exceptions/validationexception.py
# class ValidationException(Exception):
#     def __init__(self, *args, **kwargs):
#         Exception.__init__(self, *args, **kwargs)


from anchorhub.exceptions.validationexception import ValidationException
                         "be a list of strings or a namespace with an "
                         "attribute of 'extensions'")


def _validate(extensions):
    """
    Perform validations on a list of extensions. Raises a ValidationException if
    it finds something wrong.

    :param extensions: a list of string extensions
    :raises ValidationException: if the extensions fail any of the validations
    :return: True if the extensions pass the validations
    """
    validate_no_empty_strings(extensions)
    validate_list_not_empty(extensions)
    return True


def validate_no_empty_strings(extensions):
    """
    Returns True if there are no empty strings in the list of extensions.

    :param extensions: a list of string extensions
    :raises ValidationException:
    :return: True if no empty strings in list of extensions, raises a
        ValidationException otherwise
    """
    if "" not in extensions:
        return True
    else:

# Path: anchorhub/exceptions/validationexception.py
# class ValidationException(Exception):
#     def __init__(self, *args, **kwargs):
#         Exception.__init__(self, *args, **kwargs)


# Path: anchorhub/validation/validate_extensions.py
from anchorhub.exceptions.validationexception import ValidationException

                         "be a list of strings or a namespace with an "
                         "attribute of 'extensions'")


def _validate(extensions):
    """
    Perform validations on a list of extensions. Raises a ValidationException if
    it finds something wrong.

    :param extensions: a list of string extensions
    :raises ValidationException: if the extensions fail any of the validations
    :return: True if the extensions pass the validations
    """
    validate_no_empty_strings(extensions)
    validate_list_not_empty(extensions)
    return True


def validate_no_empty_strings(extensions):
    """
    Returns True if there are no empty strings in the list of extensions.

    :param extensions: a list of string extensions
    :raises ValidationException:
    :return: True if no empty strings in list of extensions, raises a
        ValidationException otherwise
    """
    if "" not in extensions:
        return True
    else:

        raise ValidationException("Empty strings are not valid extensions.")