Exception: ConfigMapper::MappingError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/config_mapper/mapping_error.rb

Overview

Thrown to indicate a problem parsing config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors_by_field) ⇒ MappingError

Returns a new instance of MappingError.



9
10
11
12
# File 'lib/config_mapper/mapping_error.rb', line 9

def initialize(errors_by_field)
  @errors_by_field = errors_by_field
  super(generate_message)
end

Instance Attribute Details

#errors_by_fieldObject (readonly)

Returns the value of attribute errors_by_field.



14
15
16
# File 'lib/config_mapper/mapping_error.rb', line 14

def errors_by_field
  @errors_by_field
end