class OpConnect::Response::RaiseError

This class raises an OpConnect-flavored exception based on HTTP status codes returned by the API.

Public Instance Methods

on_complete(response) click to toggle source
# File lib/op_connect/response/raise_error.rb, line 9
def on_complete(response)
  if (error = OpConnect::Error.from_response(response))
    raise error
  end
end