Class: ShopifyAPI::GraphQL::Tiny::GraphQLError

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, response) ⇒ GraphQLError

Returns a new instance of GraphQLError.



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

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

Instance Attribute Details

#responseObject (readonly)

Hash of failed GraphQL response



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

def response
  @response
end