Exception: GQL::Errors::UndefinedNodeClass

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

Instance Method Summary collapse

Constructor Details

#initialize(node_class, name) ⇒ UndefinedNodeClass

Returns a new instance of UndefinedNodeClass.



16
17
18
# File 'lib/gql/errors.rb', line 16

def initialize(node_class, name)
  super("#{node_class} must define a #{name} class. Set it with `self.#{name}_class = My#{name.camelize}Class`.")
end