Exception: Graphiti::Errors::UndefinedIDLookup

Inherits:
Base
  • Object
show all
Defined in:
lib/graphiti/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(resource_class) ⇒ UndefinedIDLookup

Returns a new instance of UndefinedIDLookup.



396
397
398
# File 'lib/graphiti/errors.rb', line 396

def initialize(resource_class)
  @resource_class = resource_class
end

Instance Method Details

#messageObject



400
401
402
403
404
405
406
# File 'lib/graphiti/errors.rb', line 400

def message
  "    Tried to resolve \#{@resource_class} with an :id filter, but the filter was nil.\n    This can result in unscoping a query, which can cause incorrect values to be\n    returned which may or may not bypass standard access controls.\n  MSG\nend\n"