"""Errors definitions."""

class Error(Exception):
    """Top error class. All errors should derive this class.
    
    Attributes:
        message (str): Error message.
    """

    def __init__(self, message):
        Exception.__init__(self, message)


class RequestError(Error):
    """Server request error.
    
    Attributes:
        status (int): Error http status code.
        message (str): Error message.
    """

    status = None
    message = None

    def __init__(self, status, message):
        Error.__init__(self, message)
        self.status = status
        self.message = message

    def __str__(self):
        return "RequestError: status=%s, message=%s" % ( 
            self.status, self.message)

    def __repr__(self):
        return "RequestError(status=%r, message=%r)" % (
            self.status, self.message)


@@ -105,20 +105,16 @@
  class.%0A
-    
 %0A    Att
@@ -302,20 +302,16 @@
  error.%0A
-    
 %0A    Att
@@ -669,17 +669,16 @@
 =%25s%22 %25 (
- 
 %0A       

Format fixes.