Exception: PostalMethods::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- PostalMethods::APIError
- Defined in:
- lib/postalmethods/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(code, message) ⇒ APIError
Returns a new instance of APIError.
114 115 116 117 |
# File 'lib/postalmethods/errors.rb', line 114 def initialize(code, ) @code = code super() end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
112 113 114 |
# File 'lib/postalmethods/errors.rb', line 112 def code @code end |