class Andpush::ResponseHandler

Public Instance Methods

received_response(response, _options) click to toggle source
# File lib/andpush/exceptions.rb, line 102
def received_response(response, _options)
  error = STATUS_TO_EXCEPTION_MAPPING[response.code]
  raise error.new("Receieved an error response #{response.code} #{error.to_s.split('::').last}: #{response.body}", response) if error
  response
end