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.



37
38
39
40
# File 'lib/shopify_api/graphql/tiny.rb', line 37

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



35
36
37
# File 'lib/shopify_api/graphql/tiny.rb', line 35

def code
  @code
end