# Path: networking_vsphere/_i18n.py
# DOMAIN = "networking_vsphere"
# _C = _translators.contextual_form
# _P = _translators.plural_form
# _LI = _translators.log_info
# _LW = _translators.log_warning
# _LE = _translators.log_error
# _LC = _translators.log_critical
# def get_available_languages():


from networking_vsphere._i18n import _
from neutron.common import exceptions


class VMWareDVSException(exceptions.NeutronException):
    """Base of all exceptions throwed by vmware_dvs driver"""
    message = _('VMWare DVS exception occurred. Original Exception: '
                '"%(type)s: %(message)s". Cause: "%(cause)s."')


class InvalidSystemState(VMWareDVSException):
    message = _('OpenStack environment or one of it component is in invalid '
                'state: %(details)s')


class InvalidNetwork(VMWareDVSException):
    message = _('Not supported or incorrectly configured network %(name)s')


class NotSupportedNetworkType(InvalidNetwork):
    message = _("VMWare DVS driver don't support %(network_type)s network")


class InvalidNetworkName(InvalidNetwork):
    message = _('Illegal network name %(name)s: %(reason)s')


class ResourceNotFound(VMWareDVSException):
    message = _('Resource not found')


class ClusterNotFound(ResourceNotFound):

# Path: networking_vsphere/_i18n.py
# DOMAIN = "networking_vsphere"
# _C = _translators.contextual_form
# _P = _translators.plural_form
# _LI = _translators.log_info
# _LW = _translators.log_warning
# _LE = _translators.log_error
# _LC = _translators.log_critical
# def get_available_languages():


# Path: networking_vsphere/common/exceptions.py
from networking_vsphere._i18n import _
from neutron.common import exceptions



class VMWareDVSException(exceptions.NeutronException):
    """Base of all exceptions throwed by vmware_dvs driver"""
    message = _('VMWare DVS exception occurred. Original Exception: '
                '"%(type)s: %(message)s". Cause: "%(cause)s."')


class InvalidSystemState(VMWareDVSException):
    message = _('OpenStack environment or one of it component is in invalid '
                'state: %(details)s')


class InvalidNetwork(VMWareDVSException):
    message = _('Not supported or incorrectly configured network %(name)s')


class NotSupportedNetworkType(InvalidNetwork):
    message = _("VMWare DVS driver don't support %(network_type)s network")


class InvalidNetworkName(InvalidNetwork):
    message = _('Illegal network name %(name)s: %(reason)s')


class ResourceNotFound(VMWareDVSException):
    message = _('Resource not found')


class ClusterNotFound(ResourceNotFound):

    message = _('Cluster Compute Resource %(cluster_name)s not found')