Exception: Anvil::GraphQLError

Inherits:
APIError show all
Defined in:
lib/anvil/errors.rb

Overview

GraphQL errors

Instance Attribute Summary collapse

Attributes inherited from APIError

#errors, #status_code

Attributes inherited from Error

#code, #response

Instance Method Summary collapse

Constructor Details

#initialize(message, response = nil, graphql_errors: []) ⇒ GraphQLError

Returns a new instance of GraphQLError.



86
87
88
89
# File 'lib/anvil/errors.rb', line 86

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

Instance Attribute Details

#graphql_errorsObject (readonly)

Returns the value of attribute graphql_errors.



84
85
86
# File 'lib/anvil/errors.rb', line 84

def graphql_errors
  @graphql_errors
end