Exception: GraphQL::Schema::Resolver::LoadApplicationObjectFailedError
- Inherits:
-
ExecutionError
- Object
- StandardError
- Error
- ExecutionError
- GraphQL::Schema::Resolver::LoadApplicationObjectFailedError
- Defined in:
- lib/graphql/schema/resolver.rb
Instance Attribute Summary collapse
-
#argument ⇒ GraphQL::Schema::Argument
readonly
The argument definition for the argument that was looked up.
-
#id ⇒ String
readonly
The ID provided by the client.
-
#object ⇒ Object
readonly
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
A new instance of LoadApplicationObjectFailedError.
Methods inherited from ExecutionError
Constructor Details
#initialize(argument:, id:, object:) ⇒ LoadApplicationObjectFailedError
Returns a new instance of LoadApplicationObjectFailedError
178 179 180 181 182 183 |
# File 'lib/graphql/schema/resolver.rb', line 178 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)
Returns the argument definition for the argument that was looked up
173 174 175 |
# File 'lib/graphql/schema/resolver.rb', line 173 def argument @argument end |
#id ⇒ String (readonly)
Returns The ID provided by the client
175 176 177 |
# File 'lib/graphql/schema/resolver.rb', line 175 def id @id end |
#object ⇒ Object (readonly)
Returns The value found with this ID
177 178 179 |
# File 'lib/graphql/schema/resolver.rb', line 177 def object @object end |