Exception: GraphQL::Schema::Resolver::LoadApplicationObjectFailedError Private
- Inherits:
-
ExecutionError
- Object
- StandardError
- Error
- ExecutionError
- GraphQL::Schema::Resolver::LoadApplicationObjectFailedError
- 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
-
#argument ⇒ GraphQL::Schema::Argument
readonly
private
The argument definition for the argument that was looked up.
-
#id ⇒ String
readonly
private
The ID provided by the client.
-
#object ⇒ Object
readonly
private
The value found with this ID.
Attributes inherited from ExecutionError
#ast_node, #extensions, #options, #path
Instance Method Summary collapse
-
#initialize(argument:, id:, object:) ⇒ LoadApplicationObjectFailedError
constructor
private
A new instance of LoadApplicationObjectFailedError.
Methods inherited from ExecutionError
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
#argument ⇒ GraphQL::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
154 155 156 |
# File 'lib/graphql/schema/resolver.rb', line 154 def argument @argument end |
#id ⇒ String (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
156 157 158 |
# File 'lib/graphql/schema/resolver.rb', line 156 def id @id end |
#object ⇒ Object (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
158 159 160 |
# File 'lib/graphql/schema/resolver.rb', line 158 def object @object end |