Exception: OpenAI::Errors::ResponsesProtocolError
- Inherits:
-
WebSocketProtocolError
- Object
- StandardError
- Error
- WebSocketProtocolError
- OpenAI::Errors::ResponsesProtocolError
- Defined in:
- lib/openai/helpers/responses_websocket/errors.rb,
sig/openai/helpers/responses_websocket/extensions.rbs
Overview
Raised when a Responses WebSocket message is malformed.
Instance Method Summary collapse
- #cause ⇒ Exception?
-
#initialize ⇒ ResponsesProtocolError
constructor
private
A new instance of ResponsesProtocolError.
Constructor Details
#initialize ⇒ ResponsesProtocolError
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 ResponsesProtocolError.
29 30 31 |
# File 'lib/openai/helpers/responses_websocket/errors.rb', line 29 def initialize super("Invalid Responses WebSocket event.") end |
Instance Method Details
#cause ⇒ Exception?
26 |
# File 'lib/openai/helpers/responses_websocket/errors.rb', line 26 def cause = nil |