web/_exceptions.py
branchstable
changeset 6807 7330d1fa02dd
parent 6491 ee9a10b6620e
child 7384 69aa88765db5
equal deleted inserted replaced
6806:8291f5e0c9f6 6807:7330d1fa02dd
    60 
    60 
    61 class RemoteCallFailed(RequestError):
    61 class RemoteCallFailed(RequestError):
    62     """raised when a json remote call fails
    62     """raised when a json remote call fails
    63     """
    63     """
    64     def __init__(self, reason=''):
    64     def __init__(self, reason=''):
    65         super(RequestError, self).__init__()
    65         super(RemoteCallFailed, self).__init__()
    66         self.reason = reason
    66         self.reason = reason
    67 
    67 
    68     def dumps(self):
    68     def dumps(self):
    69         return json_dumps({'reason': self.reason})
    69         return json_dumps({'reason': self.reason})
    70 
    70