Exception: Graphiti::Errors::AdapterNotImplemented

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

Instance Method Summary collapse

Constructor Details

#initialize(adapter, attribute, method) ⇒ AdapterNotImplemented

Returns a new instance of AdapterNotImplemented.



31
32
33
34
35
# File 'lib/graphiti/errors.rb', line 31

def initialize(adapter, attribute, method)
  @adapter = adapter
  @attribute = attribute
  @method = method
end

Instance Method Details

#messageObject



37
38
39
40
41
# File 'lib/graphiti/errors.rb', line 37

def message
  "    The adapter \#{@adapter.class} does not implement method '\#{@method}', which was requested for attribute '\#{@attribute}'. Add this method to your adapter to support this filter operator.\n  MSG\nend\n"