Exception: ACH::Component::HasManyAssociation::DoubleAssignmentError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ach/component/has_many_association.rb

Overview

Exception thrown if an association object, assigned for particular owner object, is used to assign to another owner object

Instance Method Summary collapse

Constructor Details

#initialize(name, owner) ⇒ DoubleAssignmentError

Initialize the error with a descriptive message.

Parameters:



44
45
46
# File 'lib/ach/component/has_many_association.rb', line 44

def initialize(name, owner)
  super "Association #{name} has alredy been assigned to #{owner}"
end