Exception: ZeroRuby::MutationNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/zero_ruby/errors.rb

Overview

Raised when a mutation is not found in the schema

Instance Attribute Summary collapse

Attributes inherited from Error

#details

Instance Method Summary collapse

Methods inherited from Error

#error_type

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_nameObject (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