Exception: OpenAI::Errors::ResponsesSendError
- Inherits:
-
ResponsesConnectionError
- Object
- StandardError
- Error
- WebSocketConnectionError
- ResponsesConnectionError
- OpenAI::Errors::ResponsesSendError
- 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
- #outcome ⇒ Symbol, :unknown readonly
Attributes inherited from ResponsesConnectionError
Attributes inherited from WebSocketConnectionError
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(url:) ⇒ ResponsesSendError
constructor
private
A new instance of ResponsesSendError.
Methods inherited from ResponsesConnectionError
Methods inherited from WebSocketConnectionError
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.
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
#outcome ⇒ Symbol, :unknown (readonly)
47 48 49 |
# File 'lib/openai/helpers/responses_websocket/errors.rb', line 47 def outcome @outcome end |