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.



32
33
34
35
# File 'lib/shopify_api/graphql/tiny.rb', line 32

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



30
31
32
# File 'lib/shopify_api/graphql/tiny.rb', line 30

def code
  @code
end