Exception: OpenAI::Errors::RealtimeReconnectError

Inherits:
Error
  • Object
show all
Defined in:
lib/openai/helpers/realtime/errors.rb,
sig/openai/helpers/realtime/recovery.rbs

Overview

Terminal recovery failure. Payloads are available only through explicit accessors, never included in the message or default exception rendering.

Instance Attribute Summary collapse

Attributes inherited from Error

#cause

Instance Method Summary collapse

Constructor Details

#initialize(message:, unsent_messages: [], uncertain_message: nil) ⇒ Object

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.



16
17
18
19
20
# File 'lib/openai/helpers/realtime/errors.rb', line 16

def initialize(message:, unsent_messages: [], uncertain_message: nil)
  @unsent_messages = unsent_messages.dup.freeze
  @uncertain_message = uncertain_message
  super(message)
end

Instance Attribute Details

#uncertain_messageString? (readonly)

Returns the value of attribute uncertain_message.

Returns:

  • (String, nil)


13
14
15
# File 'lib/openai/helpers/realtime/errors.rb', line 13

def uncertain_message
  @uncertain_message
end

#unsent_messagesArray[String] (readonly)

Returns the value of attribute unsent_messages.

Returns:

  • (Array[String])


13
14
15
# File 'lib/openai/helpers/realtime/errors.rb', line 13

def unsent_messages
  @unsent_messages
end