Exception: OpenAI::Responses::RequestError

Inherits:
SessionError show all
Defined in:
lib/openai/helpers/responses_websocket/session.rb

Instance Attribute Summary collapse

Attributes inherited from Errors::Error

#cause

Instance Method Summary collapse

Methods inherited from SessionError

#cause

Constructor Details

#initialize(event) ⇒ RequestError

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



19
20
21
22
# File 'lib/openai/helpers/responses_websocket/session.rb', line 19

def initialize(event)
  @event = event
  super("The Responses WebSocket request returned an error event.")
end

Instance Attribute Details

#event ⇒ Object (readonly)

Returns the value of attribute event.



16
17
18
# File 'lib/openai/helpers/responses_websocket/session.rb', line 16

def event
  @event
end