Exception: ACH::Component::HasManyAssociation::NoLinkError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ACH::Component::HasManyAssociation::NoLinkError
- Defined in:
- lib/ach/component/has_many_association.rb
Overview
If Record should be attached to (preceded by) other Record, this exception is raised on attempt to create attachment record without having preceded record. For example, Addenda records should be created after Entry records. Each new Addenda record will be attached to the latest Entry record.
Instance Method Summary collapse
-
#initialize(link, klass) ⇒ NoLinkError
constructor
A new instance of NoLinkError.
Constructor Details
#initialize(link, klass) ⇒ NoLinkError
Returns a new instance of NoLinkError.
28 29 30 |
# File 'lib/ach/component/has_many_association.rb', line 28 def initialize(link, klass) super "No #{link} was found to attach a new #{klass}" end |