Exception: OpenAI::Responses::RequestError
- Inherits:
-
SessionError
- Object
- StandardError
- Errors::Error
- SessionError
- OpenAI::Responses::RequestError
- Defined in:
- lib/openai/helpers/responses_websocket/session.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
Attributes inherited from Errors::Error
Instance Method Summary collapse
-
#initialize(event) ⇒ RequestError
constructor
private
A new instance of RequestError.
Methods inherited from SessionError
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 |