Exception: ShopifyCLI::API::APIRequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/shopify_cli/api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, response: nil) ⇒ APIRequestError

Returns a new instance of APIRequestError.



16
17
18
19
# File 'lib/shopify_cli/api.rb', line 16

def initialize(message = nil, response: nil)
  super(message)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



14
15
16
# File 'lib/shopify_cli/api.rb', line 14

def response
  @response
end