Exception: OpenAI::Errors::ResponsesSendError

Inherits:
ResponsesConnectionError show all
Defined in:
lib/openai/helpers/responses_websocket/errors.rb,
sig/openai/helpers/responses_websocket/extensions.rbs

Overview

Raised when a write may or may not have reached the server.

Instance Attribute Summary collapse

Attributes inherited from ResponsesConnectionError

#http_status, #url

Attributes inherited from WebSocketConnectionError

#http_status, #url

Attributes inherited from Error

#cause

Instance Method Summary collapse

Methods inherited from ResponsesConnectionError

#cause

Methods inherited from WebSocketConnectionError

#cause

Constructor Details

#initialize(url:) ⇒ ResponsesSendError

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

Parameters:

  • url: (URI::Generic)


50
51
52
53
# File 'lib/openai/helpers/responses_websocket/errors.rb', line 50

def initialize(url:)
  @outcome = :unknown
  super(url: url, message: "Responses WebSocket send outcome is unknown.")
end

Instance Attribute Details

#outcomeSymbol, :unknown (readonly)

Returns:

  • (Symbol, :unknown)


47
48
49
# File 'lib/openai/helpers/responses_websocket/errors.rb', line 47

def outcome
  @outcome
end