Exception: Legion::LLM::AuthError

Inherits:
LLMError
  • Object
show all
Defined in:
lib/legion/llm/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LLMError

#retryable?

Constructor Details

#initialize(message = nil, outcome: nil) ⇒ AuthError

Returns a new instance of AuthError.



15
16
17
18
# File 'lib/legion/llm/errors.rb', line 15

def initialize(message = nil, outcome: nil)
  @outcome = outcome
  super(message)
end

Instance Attribute Details

#outcomeObject (readonly)

M3.3: carries the exact Phase 1 ProviderOutcome so the typed failure kind survives the raise/rescue boundary on the error itself — the side-channel ivar is gone.



13
14
15
# File 'lib/legion/llm/errors.rb', line 13

def outcome
  @outcome
end