Exception: GQL::Errors::UndefinedNodeClass

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

Instance Attribute Summary

Attributes inherited from GQL::Error

#code, #handle

Instance Method Summary collapse

Methods inherited from GQL::Error

#as_json

Constructor Details

#initialize(node_class, name) ⇒ UndefinedNodeClass

Returns a new instance of UndefinedNodeClass.



114
115
116
117
118
119
# File 'lib/gql/errors.rb', line 114

def initialize(node_class, name)
  msg =  "#{node_class} must have a #{name} class set. "
  msg << "Set it with `self.#{name}_class = My#{name.camelize}Class'."

  super(msg, 124)
end