Exception: Graphiti::Errors::UnsupportedOperator

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

Instance Method Summary collapse

Constructor Details

#initialize(resource, filter_name, supported, operator) ⇒ UnsupportedOperator

Returns a new instance of UnsupportedOperator.



100
101
102
103
104
105
# File 'lib/graphiti/errors.rb', line 100

def initialize(resource, filter_name, supported, operator)
  @resource = resource
  @filter_name = filter_name
  @supported = supported
  @operator = operator
end

Instance Method Details

#messageObject



107
108
109
110
111
# File 'lib/graphiti/errors.rb', line 107

def message
  <<~MSG
    #{@resource.class}: Tried to filter #{@filter_name.inspect} on operator #{@operator.inspect}, but not supported! Supported operators are #{@supported}.
  MSG
end