Exception: ShopifyAPI::Errors::HttpResponseError

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/shopify_api/errors/http_response_error.rb

Direct Known Subclasses

MaxHttpRetriesExceededError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response:) ⇒ HttpResponseError

Returns a new instance of HttpResponseError.



16
17
18
19
20
# File 'lib/shopify_api/errors/http_response_error.rb', line 16

def initialize(response:)
  super
  @code = T.let(response.code, Integer)
  @response = response
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



10
11
12
# File 'lib/shopify_api/errors/http_response_error.rb', line 10

def code
  @code
end

#responseObject (readonly)

Returns the value of attribute response.



13
14
15
# File 'lib/shopify_api/errors/http_response_error.rb', line 13

def response
  @response
end