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

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

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

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of LoadApplicationObjectFailedError



159
160
161
162
163
164
# File 'lib/graphql/schema/resolver.rb', line 159

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)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns the argument definition for the argument that was looked up

Returns:



154
155
156
# File 'lib/graphql/schema/resolver.rb', line 154

def argument
  @argument
end

#idString (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns The ID provided by the client

Returns:

  • (String)

    The ID provided by the client



156
157
158
# File 'lib/graphql/schema/resolver.rb', line 156

def id
  @id
end

#objectObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns The value found with this ID

Returns:

  • (Object)

    The value found with this ID



158
159
160
# File 'lib/graphql/schema/resolver.rb', line 158

def object
  @object
end