Exception: VersSdk::APIConnectionError

Inherits:
APIError show all
Defined in:
lib/vers_sdk/errors.rb

Overview

Error thrown when a connection to the API cannot be established.

Direct Known Subclasses

APIConnectionTimeoutError

Instance Attribute Summary

Attributes inherited from APIError

#body, #headers, #status

Instance Method Summary collapse

Methods inherited from APIError

generate

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: message || "Connection error.")
end