Exception: VersSdk::APIConnectionError
- Inherits:
-
APIError
- Object
- StandardError
- VersSDKError
- APIError
- VersSdk::APIConnectionError
- Defined in:
- lib/vers_sdk/errors.rb
Overview
Error thrown when a connection to the API cannot be established.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from APIError
Instance Method Summary collapse
-
#initialize(message: nil, cause: nil) ⇒ APIConnectionError
constructor
A new instance of APIConnectionError.
Methods inherited from APIError
Constructor Details
#initialize(message: nil, cause: nil) ⇒ APIConnectionError
Returns a new instance of APIConnectionError.
67 68 69 70 |
# File 'lib/vers_sdk/errors.rb', line 67 def initialize(message: nil, cause: nil) @cause = cause super(status: nil, body: nil, message: || "Connection error.") end |