web/_exceptions.py
changeset 9791 32047f5f08ba
parent 8312 6c2119509fac
child 9984 793377697c81
equal deleted inserted replaced
9790:0872ac2a1db0 9791:32047f5f08ba
    62         super(StatusResponse, self).__init__(status=status)
    62         super(StatusResponse, self).__init__(status=status)
    63         self.content = content
    63         self.content = content
    64 
    64 
    65     def __repr__(self):
    65     def __repr__(self):
    66         return '%s(%r, %r)' % (self.__class__.__name__, self.status, self.content)
    66         return '%s(%r, %r)' % (self.__class__.__name__, self.status, self.content)
    67         self.url = url
       
    68 
    67 
    69 # Publish related error
    68 # Publish related error
    70 
    69 
    71 class RequestError(PublishException):
    70 class RequestError(PublishException):
    72     """raised when a request can't be served because of a bad input"""
    71     """raised when a request can't be served because of a bad input"""