Exception: Graphiti::Errors::ConflictingPublicIdSource

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

Instance Method Summary collapse

Constructor Details

#initialize(resource_class, filter_name, registered, claimant) ⇒ ConflictingPublicIdSource

Returns a new instance of ConflictingPublicIdSource.



744
745
746
747
748
749
# File 'lib/graphiti/errors.rb', line 744

def initialize(resource_class, filter_name, registered, claimant)
  @resource_class = resource_class
  @filter_name = filter_name
  @registered = registered
  @claimant = claimant
end

Instance Method Details

#message ⇒ Object



751
752
753
# File 'lib/graphiti/errors.rb', line 751

def message
  "#{@resource_class.name}: filter #{@filter_name.inspect} already resolves public ids through #{@registered.name}, so #{@claimant.name} cannot claim it too. Give one of the relationships a different `inverse_filter`."
end