lib/meibo/errors.rb in meibo-0.21.0 vs lib/meibo/errors.rb in meibo-0.22.0

- old
+ new

@@ -4,10 +4,19 @@ class Error < StandardError; end class CsvFileNotFoundError < Error; end class DataNotFoundError < Error; end class InvalidDataTypeError < Error; end class MissingDataError < Error; end - class MissingHeadersError < Error; end + + class MissingHeaderFieldsError < Error + attr_reader :missing_header_fields + + def initialize(message = nil, missing_header_fields:) + super(message) + @missing_header_fields = missing_header_fields + end + end + class NotSupportedError < Error; end - class ScrambledHeadersError < Error; end + class ScrambledHeaderFieldsError < Error; end class SourcedIdDuplicatedError < Error; end end