Exception: ACH::Component::HasManyAssociation::DoubleAssignmentError
- Inherits:
-
StandardError
- Object
- StandardError
- ACH::Component::HasManyAssociation::DoubleAssignmentError
- 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
-
#initialize(name, owner) ⇒ DoubleAssignmentError
constructor
Initialize the error with a descriptive message.
Constructor Details
#initialize(name, owner) ⇒ DoubleAssignmentError
Initialize the error with a descriptive message.
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 |