Exception: GQL::Errors::InvalidNodeClass

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, super_class) ⇒ InvalidNodeClass

Returns a new instance of InvalidNodeClass.



65
66
67
68
69
# File 'lib/gql/errors.rb', line 65

def initialize(node_class, super_class)
  msg = "#{node_class} must be a (subclass of) #{super_class}."

  super(msg, 121)
end