class ACH::Component::HasManyAssociation::NoLinkError

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.

Public Class Methods

new(link, klass) click to toggle source

Initialize the error with a descriptive message.

@param [String] link @param [Class] klass

Calls superclass method
# File lib/ach/component/has_many_association.rb, line 32
def initialize(link, klass)
  super "No #{link} was found to attach a new #{klass}"
end