Exception: Anypost::APIConnectionError

Inherits:
Error
  • Object
show all
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

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(message, cause: nil)
  super(message, type: "connection_error", raw: cause)
end