Exception: ZeroRuby::MutationNotFoundError
- Defined in:
- lib/zero_ruby/errors.rb
Overview
Raised when a mutation is not found in the schema
Instance Attribute Summary collapse
-
#mutation_name ⇒ Object
readonly
Returns the value of attribute mutation_name.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(mutation_name) ⇒ MutationNotFoundError
constructor
A new instance of MutationNotFoundError.
Methods inherited from Error
Constructor Details
#initialize(mutation_name) ⇒ MutationNotFoundError
Returns a new instance of MutationNotFoundError.
42 43 44 45 |
# File 'lib/zero_ruby/errors.rb', line 42 def initialize(mutation_name) @mutation_name = mutation_name super("Unknown mutation: #{mutation_name}") end |
Instance Attribute Details
#mutation_name ⇒ Object (readonly)
Returns the value of attribute mutation_name.
40 41 42 |
# File 'lib/zero_ruby/errors.rb', line 40 def mutation_name @mutation_name end |