Exception: GQL::Errors::UndefinedNodeClass
- Inherits:
-
GQL::Error
- Object
- StandardError
- GQL::Error
- GQL::Errors::UndefinedNodeClass
- Defined in:
- lib/gql/errors.rb
Instance Attribute Summary
Attributes inherited from GQL::Error
Instance Method Summary collapse
-
#initialize(node_class, name) ⇒ UndefinedNodeClass
constructor
A new instance of UndefinedNodeClass.
Methods inherited from GQL::Error
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 |