in uber_rides/errors.py [0:0]
def __init__(self, response, message=None):
"""
Parameters
response
The 5XX HTTP response.
message
An error message string. If one is not provided, the
default message is used.
"""
if not message:
message = (
'The server encounter an error or is '
'unable to process the request.'
)
super(ServerError, self).__init__(message)
self.error, self.meta = self._adapt_response(response)