Exception: Usps::Imis::Errors::PanelUnimplementedError
- Inherits:
-
Usps::Imis::Error
- Object
- StandardError
- Usps::Imis::Error
- Usps::Imis::Errors::PanelUnimplementedError
- Defined in:
- lib/usps/imis/errors/panel_unimplemented_error.rb
Overview
Exception raised when a panel is missing required method definitions
Instance Attribute Summary
Attributes inherited from Usps::Imis::Error
Class Method Summary collapse
-
.from(class_name, method) ⇒ Object
Create a new instance of
PanelUnimplementedErrorfrom the class name and missing method.
Instance Method Summary collapse
-
#initialize(class_name, method, metadata = {}) ⇒ PanelUnimplementedError
constructor
Create a new instance of
PanelUnimplementedError. -
#message ⇒ Object
Exception message including the undefined method.
Methods inherited from Usps::Imis::Error
Constructor Details
#initialize(class_name, method, metadata = {}) ⇒ PanelUnimplementedError
Create a new instance of PanelUnimplementedError
22 23 24 25 26 |
# File 'lib/usps/imis/errors/panel_unimplemented_error.rb', line 22 def initialize(class_name, method, = {}) @class_name = class_name @method = method super(, ) end |
Class Method Details
.from(class_name, method) ⇒ Object
Create a new instance of PanelUnimplementedError from the class name and missing method
14 |
# File 'lib/usps/imis/errors/panel_unimplemented_error.rb', line 14 def self.from(class_name, method) = new(class_name, method) |
Instance Method Details
#message ⇒ Object
Exception message including the undefined method
30 |
# File 'lib/usps/imis/errors/panel_unimplemented_error.rb', line 30 def = "#{@class_name} must implement ##{@method}" |