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-11.2.1 lib/ndr_import/missing_field_error.rb
ndr_import-11.2.0 lib/ndr_import/missing_field_error.rb
ndr_import-11.1.0 lib/ndr_import/missing_field_error.rb
ndr_import-11.0.2 lib/ndr_import/missing_field_error.rb
ndr_import-11.0.1 lib/ndr_import/missing_field_error.rb
ndr_import-11.0.0 lib/ndr_import/missing_field_error.rb
ndr_import-10.3.0 lib/ndr_import/missing_field_error.rb
ndr_import-10.2.0 lib/ndr_import/missing_field_error.rb
ndr_import-10.1.3 lib/ndr_import/missing_field_error.rb
ndr_import-10.1.2 lib/ndr_import/missing_field_error.rb
ndr_import-10.1.1 lib/ndr_import/missing_field_error.rb
ndr_import-10.1 lib/ndr_import/missing_field_error.rb
ndr_import-10.0 lib/ndr_import/missing_field_error.rb
ndr_import-9.1.0 lib/ndr_import/missing_field_error.rb
ndr_import-9.0.3 lib/ndr_import/missing_field_error.rb
ndr_import-9.0.2 lib/ndr_import/missing_field_error.rb
ndr_import-9.0.1 lib/ndr_import/missing_field_error.rb
ndr_import-9.0.0 lib/ndr_import/missing_field_error.rb
ndr_import-8.6.0 lib/ndr_import/missing_field_error.rb
ndr_import-8.5.2 lib/ndr_import/missing_field_error.rb