Exception: Deliveries::APIError
- Defined in:
- lib/deliveries/errors.rb
Overview
For errors returned by the API
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message = nil, code = nil) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(message = nil, code = nil) ⇒ APIError
Returns a new instance of APIError.
12 13 14 15 |
# File 'lib/deliveries/errors.rb', line 12 def initialize( = nil, code = nil) @code = code super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
10 11 12 |
# File 'lib/deliveries/errors.rb', line 10 def code @code end |