Class: ShopifyAPI::GraphQL::Tiny::HTTPError

Inherits:
Error
  • Object
show all
Defined in:
lib/shopify_api/graphql/tiny.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code) ⇒ HTTPError

Returns a new instance of HTTPError.



21
22
23
24
# File 'lib/shopify_api/graphql/tiny.rb', line 21

def initialize(message, code)
  super(message)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



19
20
21
# File 'lib/shopify_api/graphql/tiny.rb', line 19

def code
  @code
end