Exception: OpenAI::Errors::ResponsesConnectionError
- Inherits:
-
WebSocketConnectionError
- Object
- StandardError
- Error
- WebSocketConnectionError
- OpenAI::Errors::ResponsesConnectionError
- Defined in:
- lib/openai/helpers/responses_websocket/errors.rb,
sig/openai/helpers/responses_websocket/extensions.rbs
Overview
Raised when a Responses WebSocket cannot be opened or used.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#http_status ⇒ Integer?
readonly
Returns the value of attribute http_status.
-
#url ⇒ URI::Generic
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #cause ⇒ Exception?
-
#initialize ⇒ ResponsesConnectionError
constructor
A new instance of ResponsesConnectionError.
Constructor Details
#initialize ⇒ ResponsesConnectionError
Returns a new instance of ResponsesConnectionError.
20 21 22 23 24 |
# File 'sig/openai/helpers/responses_websocket/extensions.rbs', line 20
def initialize: (
url: URI::Generic,
?message: String?,
?http_status: Integer?
) -> void
|
Instance Attribute Details
#http_status ⇒ Integer? (readonly)
Returns the value of attribute http_status.
18 19 20 |
# File 'sig/openai/helpers/responses_websocket/extensions.rbs', line 18 def http_status @http_status end |
#url ⇒ URI::Generic (readonly)
Returns the value of attribute url.
17 18 19 |
# File 'sig/openai/helpers/responses_websocket/extensions.rbs', line 17 def url @url end |
Instance Method Details
#cause ⇒ Exception?
8 |
# File 'lib/openai/helpers/responses_websocket/errors.rb', line 8 def cause = nil |