Sha256: 7b3edb8fbde4d378b0db9cd373dcf60f793c62acad3b256ad18255b3d39a478c

Contents?: true

Size: 324 Bytes

Versions: 27

Compression:

Stored size: 324 Bytes

Contents

require 'active_model' # Source I18n translations

module NdrImport
  # Raised if a mandatory field is blank.
  class MissingFieldError < StandardError
    attr_reader :field

    def initialize(field)
      @field = field
      message = "#{field} #{I18n.t('errors.messages.blank')}"
      super(message)
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
ndr_import-8.5.1 lib/ndr_import/missing_field_error.rb
ndr_import-8.5.0 lib/ndr_import/missing_field_error.rb
ndr_import-8.4.0 lib/ndr_import/missing_field_error.rb
ndr_import-8.3.0 lib/ndr_import/missing_field_error.rb
ndr_import-8.2.0 lib/ndr_import/missing_field_error.rb
ndr_import-8.1.0 lib/ndr_import/missing_field_error.rb
ndr_import-8.0.0 lib/ndr_import/missing_field_error.rb