class Almodovar::HttpError

Attributes

response_body[R]
response_headers[R]
response_status[R]

Public Class Methods

new(response, url, query_params = {}) click to toggle source

Children of this class must not override the initialize method

Calls superclass method
# File lib/almodovar/errors.rb, line 6
def initialize(response, url, query_params = {})
  @response_status = response.status
  @response_body = response.body
  @response_headers = response.headers
  message = "Status code #{response.status} on resource #{url}"
  message += " with params: #{query_params.inspect}" if query_params.present?
  super(message)
end