Exception: SurgeAPI::Errors::APIConnectionError

Inherits:
APIError
  • Object
show all
Defined in:
lib/surge_api/errors.rb,
sig/surge_api/errors.rbs

Direct Known Subclasses

APITimeoutError

Instance Attribute Summary collapse

Attributes inherited from APIError

#headers, #url

Attributes inherited from Error

#cause

Instance Method Summary collapse

Constructor Details

#initialize(url:, status: nil, headers: nil, body: nil, request: nil, response: nil, message: "Connection error.") ⇒ APIConnectionError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of APIConnectionError.



87
88
89
90
91
92
93
94
95
96
97
# File 'lib/surge_api/errors.rb', line 87

def initialize(
  url:,
  status: nil,
  headers: nil,
  body: nil,
  request: nil,
  response: nil,
  message: "Connection error."
)
  super
end

Instance Attribute Details

#bodynil



# File 'lib/surge_api/errors.rb', line 74

#statusnil



# File 'lib/surge_api/errors.rb', line 70