# Path: libcloud/common/types.py
# class LibcloudError(Exception):
#     """The base class for other libcloud exceptions"""
#     def __init__(self, value, driver=None):
#         self.value = value
#         self.driver = driver
# 
#     def __str__(self):
#         return "<LibcloudError in "+ repr(self.driver) +" "+ repr(self.value) + ">"
# 
# class MalformedResponseError(LibcloudError):
#     """Exception for the cases when a provider returns a malformed
#     response, e.g. you request JSON and provider returns 
#     '<h3>something</h3>' due to some error on their side."""
#     def __init__(self, value, body=None, driver=None):
#       self.value = value
#       self.driver = driver
#       self.body = body
#     def __str__(self):
#         return "<MalformedResponseException in "+ repr(self.driver) +" "+ repr(self.value) +">: "+ repr(self.body)
# 
# Path: libcloud/common/types.py
# class LibcloudError(Exception):
# class MalformedResponseError(LibcloudError):
# class InvalidCredsError(LibcloudError):
#     def __init__(self, value, driver=None):
#     def __str__(self):
#     def __init__(self, value, body=None, driver=None):
#     def __str__(self):
#     def __init__(self, value='Invalid credentials with the provider', driver=None):
#     def __str__(self):


from libcloud.common.types import LibcloudError, MalformedResponseError
from libcloud.common.types import InvalidCredsError, InvalidCredsException
    ECP = 14
    IBM = 15
    OPENNEBULA = 16
    DREAMHOST = 17
    ELASTICHOSTS = 18
    ELASTICHOSTS_UK1 = 19
    ELASTICHOSTS_UK2 = 20
    ELASTICHOSTS_US1 = 21
    EC2_AP_SOUTHEAST = 22
    RACKSPACE_UK = 23
    BRIGHTBOX = 24
    CLOUDSIGMA = 25
    EC2_AP_NORTHEAST = 26

class NodeState(object):
    """
    Standard states for a node

    @cvar RUNNING: Node is running
    @cvar REBOOTING: Node is rebooting
    @cvar TERMINATED: Node is terminated
    @cvar PENDING: Node is pending
    @cvar UNKNOWN: Node state is unknown
    """
    RUNNING = 0
    REBOOTING = 1
    TERMINATED = 2
    PENDING = 3
    UNKNOWN = 4


# Path: libcloud/common/types.py
# class LibcloudError(Exception):
#     """The base class for other libcloud exceptions"""
#     def __init__(self, value, driver=None):
#         self.value = value
#         self.driver = driver
# 
#     def __str__(self):
#         return "<LibcloudError in "+ repr(self.driver) +" "+ repr(self.value) + ">"
# 
# class MalformedResponseError(LibcloudError):
#     """Exception for the cases when a provider returns a malformed
#     response, e.g. you request JSON and provider returns 
#     '<h3>something</h3>' due to some error on their side."""
#     def __init__(self, value, body=None, driver=None):
#       self.value = value
#       self.driver = driver
#       self.body = body
#     def __str__(self):
#         return "<MalformedResponseException in "+ repr(self.driver) +" "+ repr(self.value) +">: "+ repr(self.body)
# 
# Path: libcloud/common/types.py
# class LibcloudError(Exception):
# class MalformedResponseError(LibcloudError):
# class InvalidCredsError(LibcloudError):
#     def __init__(self, value, driver=None):
#     def __str__(self):
#     def __init__(self, value, body=None, driver=None):
#     def __str__(self):
#     def __init__(self, value='Invalid credentials with the provider', driver=None):
#     def __str__(self):


# Path: libcloud/compute/types.py
from libcloud.common.types import LibcloudError, MalformedResponseError
from libcloud.common.types import InvalidCredsError, InvalidCredsException

    ECP = 14
    IBM = 15
    OPENNEBULA = 16
    DREAMHOST = 17
    ELASTICHOSTS = 18
    ELASTICHOSTS_UK1 = 19
    ELASTICHOSTS_UK2 = 20
    ELASTICHOSTS_US1 = 21
    EC2_AP_SOUTHEAST = 22
    RACKSPACE_UK = 23
    BRIGHTBOX = 24
    CLOUDSIGMA = 25
    EC2_AP_NORTHEAST = 26

class NodeState(object):
    """
    Standard states for a node

    @cvar RUNNING: Node is running
    @cvar REBOOTING: Node is rebooting
    @cvar TERMINATED: Node is terminated
    @cvar PENDING: Node is pending
    @cvar UNKNOWN: Node state is unknown
    """
    RUNNING = 0
    REBOOTING = 1
    TERMINATED = 2
    PENDING = 3
    UNKNOWN = 4


class DeploymentError(LibcloudError):