Exception: Graphiti::Errors::MissingSideloadFilter

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

Instance Method Summary collapse

Constructor Details

#initialize(resource_class, sideload, filter) ⇒ MissingSideloadFilter

Returns a new instance of MissingSideloadFilter.



631
632
633
634
635
# File 'lib/graphiti/errors.rb', line 631

def initialize(resource_class, sideload, filter)
  @resource_class = resource_class
  @sideload = sideload
  @filter = filter
end

Instance Method Details

#messageObject



637
638
639
640
641
642
643
# File 'lib/graphiti/errors.rb', line 637

def message
  "    \#{@resource_class.name}: sideload \#{@sideload.name.inspect} is associated with resource \#{@sideload.resource.class.name}, but it does not have corresponding filter.\n\n    Expecting filter \#{@filter.inspect} on \#{@sideload.resource.class.name}.\n  MSG\nend\n"