class MARC::AlephSequential::ErrorRecord

We need an empty record to signal an error condition that might occur within each (e.g, the record has no leader). Raising the error will abort any each loop without giving the user a chance to catch is (because by the time the block is run, the error has already been thrown). See a simplified example of this problem at gist.github.com/billdueber/6d501f730c79f6a74498

Attributes

error[RW]

Public Class Methods

new(error) click to toggle source
Calls superclass method
# File lib/marc_alephsequential/reader.rb, line 20
def initialize(error)
  super()
  self.error = error
end