Exception: Anypost::APIConnectionError
- Defined in:
- lib/anypost/errors.rb
Overview
No HTTP response was received (network failure, timeout, or abort).
Instance Attribute Summary
Attributes inherited from Error
#raw, #request_id, #status, #type
Instance Method Summary collapse
-
#initialize(message, cause: nil) ⇒ APIConnectionError
constructor
A new instance of APIConnectionError.
Constructor Details
#initialize(message, cause: nil) ⇒ APIConnectionError
Returns a new instance of APIConnectionError.
74 75 76 |
# File 'lib/anypost/errors.rb', line 74 def initialize(, cause: nil) super(, type: "connection_error", raw: cause) end |