Exception: FinchAPI::APITimeoutError

Inherits:
APIConnectionError show all
Defined in:
lib/finch-api/errors.rb

Instance Attribute Summary

Attributes inherited from APIConnectionError

#body, #status

Attributes inherited from APIError

#body, #status, #url

Instance Method Summary collapse

Constructor Details

#initialize(url:, status: nil, body: nil, request: nil, response: nil, message: "Request timed out.") ⇒ APITimeoutError

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 APITimeoutError.

Parameters:

  • url (URI::Generic)
  • status (nil) (defaults to: nil)
  • body (nil) (defaults to: nil)
  • request (nil) (defaults to: nil)
  • response (nil) (defaults to: nil)
  • message (String, nil) (defaults to: "Request timed out.")


79
80
81
82
83
84
85
86
87
88
# File 'lib/finch-api/errors.rb', line 79

def initialize(
  url:,
  status: nil,
  body: nil,
  request: nil,
  response: nil,
  message: "Request timed out."
)
  super
end