Exception: OpenAI::Errors::APITimeoutError

Inherits:
APIConnectionError show all
Defined in:
lib/openai/errors.rb,
sig/openai/errors.rbs

Instance Attribute Summary

Attributes inherited from APIConnectionError

#body, #code, #param, #status, #type

Attributes inherited from APIError

#body, #code, #headers, #param, #status, #type, #url

Attributes inherited from Error

#cause

Instance Method Summary collapse

Methods inherited from APIConnectionError

#request_may_have_been_sent?

Methods inherited from APIError

#request_id

Constructor Details

#initialize(url:, status: nil, headers: nil, body: nil, request: nil, response: nil, message: "Request timed out.", request_may_have_been_sent: true) ⇒ 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)
  • headers (Hash{String=>String}, 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.")
  • request_may_have_been_sent (Boolean) (defaults to: true)


189
190
191
192
193
194
195
196
197
198
199
200
# File 'lib/openai/errors.rb', line 189

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