Exception: FlyIO::GraphQLError

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

Instance Attribute Summary collapse

Attributes inherited from APIError

#details, #headers, #request, #request_id, #status

Instance Method Summary collapse

Constructor Details

#initialize(message = "Fly.io GraphQL request failed", graphql_errors: []) ⇒ GraphQLError

Returns a new instance of GraphQLError.



40
41
42
43
# File 'lib/fly_io/errors.rb', line 40

def initialize(message = "Fly.io GraphQL request failed", graphql_errors: [], **)
  @graphql_errors = Redactor.redact_object(graphql_errors)
  super(message, details: @graphql_errors, **)
end

Instance Attribute Details

#graphql_errorsObject (readonly)

Returns the value of attribute graphql_errors.



38
39
40
# File 'lib/fly_io/errors.rb', line 38

def graphql_errors
  @graphql_errors
end