Exception: LLM::Error::ResponseError
- Inherits:
-
LLM::Error
- Object
- RuntimeError
- LLM::Error
- LLM::Error::ResponseError
- Defined in:
- lib/llm/error.rb
Overview
The superclass of all HTTP protocol errors
Constant Summary
Constants inherited from LLM::Error
FormatError, PromptError, RateLimit, Unauthorized
Instance Attribute Summary collapse
-
#response ⇒ Net::HTTPResponse
Returns the response associated with an error.
Instance Method Summary collapse
Methods inherited from LLM::Error
Constructor Details
This class inherits a constructor from LLM::Error
Instance Attribute Details
#response ⇒ Net::HTTPResponse
Returns the response associated with an error
18 19 20 |
# File 'lib/llm/error.rb', line 18 def response @response end |
Instance Method Details
#message ⇒ Object
20 21 22 |
# File 'lib/llm/error.rb', line 20 def [super, response.body].join("\n") end |