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.



6
7
8
9
10
# File 'lib/graphiti/errors.rb', line 6

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

Instance Method Details

#messageObject



12
13
14
15
16
# File 'lib/graphiti/errors.rb', line 12

def message
  <<-MSG
    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.
  MSG
end