Exception: Terret::LLM::AdapterError
- Inherits:
-
StandardError
- Object
- StandardError
- Terret::LLM::AdapterError
- Defined in:
- lib/terret/llm.rb
Overview
Adapter failures. Retryable covers 429/overload/5xx and transport drops before any bytes streamed; everything else raises through immediately.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status: nil, body: nil) ⇒ AdapterError
constructor
A new instance of AdapterError.
Constructor Details
#initialize(message, status: nil, body: nil) ⇒ AdapterError
Returns a new instance of AdapterError.
51 52 53 54 55 |
# File 'lib/terret/llm.rb', line 51 def initialize(, status: nil, body: nil) super() @status = status @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
49 50 51 |
# File 'lib/terret/llm.rb', line 49 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
49 50 51 |
# File 'lib/terret/llm.rb', line 49 def status @status end |