Package com.tnsai.llm.fallback
Class LLMChainExhaustedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.tnsai.exceptions.TnsAIException
com.tnsai.exceptions.LLMException
com.tnsai.llm.fallback.LLMChainExhaustedException
- All Implemented Interfaces:
Serializable
public class LLMChainExhaustedException
extends com.tnsai.exceptions.LLMException
Thrown by an
LLMFallbackChain when every eligible target has
been tried and none succeeded (issue #89). Carries the full
LLMChainExhaustedException.AttemptRecord list so operators see — in one structured
exception — exactly which providers were attempted, in what order,
and how each failed.
Extends LLMException so existing catch sites that already
handle LLM failures pick this up uniformly. LLMException.getErrorType()
returns SERVER_ERROR because, from the caller's perspective,
the LLM layer as a whole is unavailable.
- Since:
- 0.5.0 (issue #89)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne try against one chain target.Nested classes/interfaces inherited from class com.tnsai.exceptions.LLMException
com.tnsai.exceptions.LLMException.ErrorType -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionThe full attempt history.Methods inherited from class com.tnsai.exceptions.LLMException
authenticationFailed, contentFiltered, contextTooLong, getErrorType, getModel, getProviderDetails, getSuggestedRetryDelayMs, malformedToolCall, malformedToolCall, modelNotFound, modelOverloaded, serverErrorMethods inherited from class com.tnsai.exceptions.TnsAIException
getContext, getErrorCode, getMaxRetryAttempts, getMessage, getThrownAt, isRetryable, wrapMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LLMChainExhaustedException
-
-
Method Details
-
getAttempts
The full attempt history. Earliest-attempted first; the last entry is the one whose failure caused exhaustion.
-