Revision 0238c167 kamaki/clients/connection/errors.py

b/kamaki/clients/connection/errors.py
33 33

  
34 34

  
35 35
class HTTPConnectionError(Exception):
36
    """
37
        700: Generic connection error
38
        701: Cannot connect to server
39
        702: Response format error
40
    """
41
    def __init__(self, message, status=700):
36
    def __init__(self, message):
42 37
        super(HTTPConnectionError, self).__init__(message)
43
        self.status = status
44 38

  
45 39

  
46
class HTTPResponseFormatError(HTTPConnectionError):
47

  
48
    def __init__(self, message, details=''):
49
        super(HTTPResponseFormatError, self).__init__(message, status=702)
40
class HTTPResponseError(Exception):
41
    def __init__(self, message):
42
        super(HTTPResponseError, self).__init__(message)

Also available in: Unified diff