Exception: GraphQL::Schema::Resolver::LoadApplicationObjectFailedError

Inherits:
ExecutionError
  • Object
show all
Defined in:
lib/graphql/schema/resolver.rb

Instance Attribute Summary collapse

Attributes inherited from ExecutionError

#ast_node, #extensions, #options, #path

Instance Method Summary collapse

Methods inherited from ExecutionError

#to_h

Constructor Details

#initialize(argument:, id:, object:) ⇒ LoadApplicationObjectFailedError



177
178
179
180
181
182
# File 'lib/graphql/schema/resolver.rb', line 177

def initialize(argument:, id:, object:)
  @id = id
  @argument = argument
  @object = object
  super("No object found for `#{argument.graphql_name}: #{id.inspect}`")
end

Instance Attribute Details

#argumentGraphQL::Schema::Argument (readonly)



172
173
174
# File 'lib/graphql/schema/resolver.rb', line 172

def argument
  @argument
end

#idString (readonly)



174
175
176
# File 'lib/graphql/schema/resolver.rb', line 174

def id
  @id
end

#objectObject (readonly)



176
177
178
# File 'lib/graphql/schema/resolver.rb', line 176

def object
  @object
end