Exception: Usps::Imis::Errors::MapperError
- Inherits:
-
Usps::Imis::Error
- Object
- StandardError
- Usps::Imis::Error
- Usps::Imis::Errors::MapperError
- Defined in:
- lib/usps/imis/errors/mapper_error.rb
Overview
Exception raised by a Mapper
Instance Attribute Summary
Attributes inherited from Usps::Imis::Error
Instance Method Summary collapse
-
#initialize(metadata = {}) ⇒ MapperError
constructor
Create a new instance of
MapperError. -
#message ⇒ Object
Exception message including the unrecognized field.
Methods inherited from Usps::Imis::Error
Constructor Details
#initialize(metadata = {}) ⇒ MapperError
Create a new instance of MapperError
13 14 15 16 |
# File 'lib/usps/imis/errors/mapper_error.rb', line 13 def initialize( = {}) @metadata = super(, ) end |
Instance Method Details
#message ⇒ Object
Exception message including the unrecognized field
20 21 22 23 24 25 |
# File 'lib/usps/imis/errors/mapper_error.rb', line 20 def <<~MESSAGE.chomp Mapper does not recognize field: "#{[:field_key]}". Please report what data you are attempting to work with to ITCom leadership. MESSAGE end |