

class ClientException(Exception):
    """
    Base radosgw_agent client exception.
    """
    pass


class InvalidProtocol(ClientException):
    pass


class InvalidHost(ClientException):
    pass


class InvalidZone(ClientException):
    pass


class ZoneNotFound(ClientException):
    pass


class BucketEmpty(ClientException):
    pass


class HttpError(ClientException):
    def __init__(self, code, body):
        self.code = code
        self.str_code = str(code)
        self.body = body
        self.message = 'Http error code %s content %s' % (code, body)

    def __str__(self):
        return self.message


class NotFound(HttpError):
    pass

create an exceptions module