class GraphqlRails::ExecutionError

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

Public Instance Methods

extra_graphql_data() click to toggle source
# File lib/graphql_rails/errors/execution_error.rb, line 12
def extra_graphql_data
  {}.tap do |data|
    data['type'] = type if respond_to?(:type) && type
    data['code'] = type if respond_to?(:code) && code
  end
end
to_h() click to toggle source
Calls superclass method
# File lib/graphql_rails/errors/execution_error.rb, line 8
def to_h
  super.merge(extra_graphql_data)
end