Exception: Graphiti::Errors::ResourceEndpointConflict
- Defined in:
- lib/graphiti/errors.rb
Instance Method Summary collapse
-
#initialize(path, action, resource_a, resource_b) ⇒ ResourceEndpointConflict
constructor
A new instance of ResourceEndpointConflict.
- #message ⇒ Object
Constructor Details
#initialize(path, action, resource_a, resource_b) ⇒ ResourceEndpointConflict
Returns a new instance of ResourceEndpointConflict.
419 420 421 422 423 424 |
# File 'lib/graphiti/errors.rb', line 419 def initialize(path, action, resource_a, resource_b) @path = path @action = action @resource_a = resource_a @resource_b = resource_b end |
Instance Method Details
#message ⇒ Object
426 427 428 429 430 431 432 |
# File 'lib/graphiti/errors.rb', line 426 def <<~MSG Both '#{@resource_a}' and '#{@resource_b}' are associated to endpoint #{@path}##{@action}! Only one resource can be associated to a given url/verb combination. MSG end |