Exception: Legion::LLM::Errors::RoutingRejected
- Defined in:
- lib/legion/llm/errors.rb
Overview
SSOT v3: raised by RoutingSession#next_attempt! when Router.next_lane returned a typed Rejection. Carries the exact Phase 1 Rejection so HTTP boundaries can map it through RoutingErrorMapper before StandardError.
Instance Attribute Summary collapse
-
#rejection ⇒ Object
readonly
Returns the value of attribute rejection.
Instance Method Summary collapse
-
#initialize(rejection:, message: nil) ⇒ RoutingRejected
constructor
A new instance of RoutingRejected.
- #retryable? ⇒ Boolean
Constructor Details
#initialize(rejection:, message: nil) ⇒ RoutingRejected
Returns a new instance of RoutingRejected.
170 171 172 173 |
# File 'lib/legion/llm/errors.rb', line 170 def initialize(rejection:, message: nil, **) @rejection = rejection super( || "routing rejected: #{rejection.kind} (#{rejection.reason})") end |
Instance Attribute Details
#rejection ⇒ Object (readonly)
Returns the value of attribute rejection.
168 169 170 |
# File 'lib/legion/llm/errors.rb', line 168 def rejection @rejection end |
Instance Method Details
#retryable? ⇒ Boolean
175 |
# File 'lib/legion/llm/errors.rb', line 175 def retryable? = false |