Exception: Terret::LLM::AdapterError

Inherits:
StandardError
  • Object
show all
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

RetryableError

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, status: nil, body: nil)
  super(message)
  @status = status
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



49
50
51
# File 'lib/terret/llm.rb', line 49

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



49
50
51
# File 'lib/terret/llm.rb', line 49

def status
  @status
end