Exception: GQL::Errors::InvalidClass

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(klass, baseclass) ⇒ InvalidClass

Returns a new instance of InvalidClass.



74
75
76
77
78
# File 'lib/gql/errors.rb', line 74

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

  super(msg, 123)
end