class CSVConverter::Error
Error
holds error messages as well as details of the data being processed.
Attributes
details[R]
Details of the data being processed when the error happened. By default this includes:
filename: the name of the file being processed row_num: number of the row being processed entity: the name of the entity being processed as provided in the mappings row: the raw data of the row being processed attr: the name of the attribute being processed as provided in the mappings
Additionally it contains all the options provided to the converter in the mappings. @return [Hash]
Public Class Methods
new(message, details = {})
click to toggle source
A new instance of Error
. @param message [String] the error description @param details [Hash] info about the data being proccesed at the time of the error
Calls superclass method
# File lib/csv_converter.rb, line 43 def initialize(message, details = {}) @details = details super("#{message} on: #{details}") end