Exception: Usps::Imis::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Usps::Imis::Error
- Defined in:
- lib/usps/imis/error.rb
Overview
Base error class for all internal exceptions
Direct Known Subclasses
Usps::Imis::Errors::ApiError, Usps::Imis::Errors::CommandLineError, Usps::Imis::Errors::ConfigError, Usps::Imis::Errors::LockedIdError, Usps::Imis::Errors::MapperError, Usps::Imis::Errors::MissingIdError, Usps::Imis::Errors::NotFoundError, Usps::Imis::Errors::PanelUnimplementedError, Usps::Imis::Errors::ResponseError, Usps::Imis::Errors::UnexpectedPropertyTypeError
Instance Attribute Summary collapse
-
#metadata ⇒ Object
Additional call-specific metadata to pass through to Bugsnag.
Instance Method Summary collapse
-
#bugsnag_meta_data ⇒ Hash
Additional metadata to include in Bugsnag reports.
-
#initialize(message, metadata = {}) ⇒ Error
constructor
A new instance of
ApiError.
Constructor Details
#initialize(message, metadata = {}) ⇒ Error
A new instance of ApiError
17 18 19 20 21 22 |
# File 'lib/usps/imis/error.rb', line 17 def initialize(, = {}) super() = Imis.logger(self.class.name).error self end |
Instance Attribute Details
#metadata ⇒ Object
Additional call-specific metadata to pass through to Bugsnag
10 11 12 |
# File 'lib/usps/imis/error.rb', line 10 def end |
Instance Method Details
#bugsnag_meta_data ⇒ Hash
Additional metadata to include in Bugsnag reports
Can include fields at the top level, which will be shows on the custom tab
Can include fields nested under a top-level key, which will be shown on a tab with the top-level key as its name
33 34 35 |
# File 'lib/usps/imis/error.rb', line 33 def == {} ? {} : end |