Do not merge this yet
@sishen : I'm using raise_error middleware of Faraday and passing the message to Uber::Error.from_error which raises exception based on status code.
Though, this is not a good solution for Request errors, since it was being handled by RequestError earlier. Should I re-use this for Request and continue to use Uber::Error for others? Suggestions?
Do not merge this yet @sishen : I'm using raise_error middleware of Faraday and passing the message to
Uber::Error.from_error
which raises exception based on status code. Though, this is not a good solution forRequest
errors, since it was being handled byRequestError
earlier. Should I re-use this forRequest
and continue to useUber::Error
for others? Suggestions?