Exception: OpenAI::Errors::ResponsesConnectionError

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

Overview

Raised when a Responses WebSocket cannot be opened or used.

Direct Known Subclasses

ResponsesSendError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ ResponsesConnectionError

Returns a new instance of ResponsesConnectionError.

Parameters:

  • url: (URI::Generic)
  • message: (String, nil)
  • http_status: (Integer, nil)


20
21
22
23
24
# File 'sig/openai/helpers/responses_websocket/extensions.rbs', line 20

def initialize: (
  url: URI::Generic,
  ?message: String?,
  ?http_status: Integer?
) -> void

Instance Attribute Details

#http_status ⇒ Integer? (readonly)

Returns the value of attribute http_status.

Returns:

  • (Integer, nil)


18
19
20
# File 'sig/openai/helpers/responses_websocket/extensions.rbs', line 18

def http_status
  @http_status
end

#url ⇒ URI::Generic (readonly)

Returns the value of attribute url.

Returns:

  • (URI::Generic)


17
18
19
# File 'sig/openai/helpers/responses_websocket/extensions.rbs', line 17

def url
  @url
end

Instance Method Details

#cause ⇒ Exception?

Returns:

  • (Exception, nil)


8
# File 'lib/openai/helpers/responses_websocket/errors.rb', line 8

def cause = nil