Exception: OpenAI::Errors::ResponsesProtocolError

Inherits:
WebSocketProtocolError show all
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

Constructor Details

#initializeResponsesProtocolError

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

#causeException?

Returns:

  • (Exception, nil)


26
# File 'lib/openai/helpers/responses_websocket/errors.rb', line 26

def cause = nil