class GraphqlRails::CustomExecutionError

base class which is returned in case something bad happens. Contains all error rendering tructure

Attributes

extra_graphql_data[R]

Public Class Methods

accepts?(error) click to toggle source
# File lib/graphql_rails/errors/custom_execution_error.rb, line 8
def self.accepts?(error)
  error.is_a?(Hash) &&
    (error.key?(:message) || error.key?('message'))
end
new(message, extra_graphql_data = {}) click to toggle source
Calls superclass method
# File lib/graphql_rails/errors/custom_execution_error.rb, line 13
def initialize(message, extra_graphql_data = {})
  super(message)
  @extra_graphql_data = extra_graphql_data.stringify_keys
end

Public Instance Methods

to_h() click to toggle source
Calls superclass method
# File lib/graphql_rails/errors/custom_execution_error.rb, line 18
def to_h
  super
end