Exception: OpenAI::Errors::APIConnectionError
- Defined in:
- lib/openai/errors.rb,
sig/openai/errors.rbs
Direct Known Subclasses
Instance Attribute Summary collapse
Attributes inherited from APIError
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(url:, status: nil, headers: nil, body: nil, request: nil, response: nil, message: "Connection error.") ⇒ APIConnectionError
constructor
private
A new instance of APIConnectionError.
Methods inherited from APIError
Constructor Details
#initialize(url:, status: nil, headers: nil, body: nil, request: nil, response: nil, message: "Connection error.") ⇒ APIConnectionError
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 APIConnectionError.
118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/openai/errors.rb', line 118 def initialize( url:, status: nil, headers: nil, body: nil, request: nil, response: nil, message: "Connection error." ) super end |
Instance Attribute Details
#body ⇒ nil
|
|
# File 'lib/openai/errors.rb', line 93
|
#code ⇒ nil
|
|
# File 'lib/openai/errors.rb', line 97
|
#param ⇒ nil
|
|
# File 'lib/openai/errors.rb', line 101
|
#status ⇒ nil
|
|
# File 'lib/openai/errors.rb', line 89
|
#type ⇒ nil
|
|
# File 'lib/openai/errors.rb', line 105
|