Exception: VoyageAI::Client::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- VoyageAI::Client::RequestError
- Defined in:
- lib/voyageai/client.rb
Overview
An error raised for any HTTP issues.
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response:) ⇒ RequestError
constructor
A new instance of RequestError.
Constructor Details
#initialize(response:) ⇒ RequestError
Returns a new instance of RequestError.
11 12 13 14 |
# File 'lib/voyageai/client.rb', line 11 def initialize(response:) super("status=#{response.status} body=#{response.body}") @response = response end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
8 9 10 |
# File 'lib/voyageai/client.rb', line 8 def response @response end |