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.



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

def initialize
  msg =  "GQL root field class is not set. "
  msg << "Set it with `GQL.root_class = MyRootField'."

  super(msg, 121)
end