Exception: GQL::Errors::RootClassNotSet

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

#initializeRootClassNotSet

Returns a new instance of RootClassNotSet.



90
91
92
93
94
95
# File 'lib/gql/errors.rb', line 90

def initialize
  msg =  "GQL root node class is not set. "
  msg << "Set it with `GQL.root_node_class = MyRootNode'."

  super(msg, 123)
end