NonRecoverableError
org.llm4s.error.NonRecoverableError
@Stable
trait NonRecoverableError extends LLMError
Marker trait for errors that cannot be recovered through retries.
Errors extending this trait indicate permanent failures that require user intervention or code changes to resolve. Examples include authentication failures, invalid input, and configuration errors.
Use pattern matching or LLMError.isRecoverable to check recoverability:
error match {
case _: RecoverableError => // Apply retry logic
case _ => // Report failure to user: a NonRecoverableError, or an error with no marker
}
Attributes
- See also
-
RecoverableError for errors that may succeed on retry
- Graph
-
- Supertypes
- Known subtypes
-
class GuardrailBlockedclass MiddlewareAskedclass Cancelledclass CheckpointConflictclass CheckpointNotFoundclass CheckpointWriteFailedclass ForeignExecutionclass IncompleteRunclass InvalidCommitclass InvalidGraphclass InvalidResumeclass InvalidRouteclass MiddlewareFailedclass NodeFailedclass NotSuspendedclass NothingToRecoverclass PendingInterruptsclass ReplayUnavailableclass RestoreRejectedclass RunCrashedclass StaleClaimclass StateUpdateFailedclass SuperstepLimitExceededclass TenantMismatchclass ThreadBusyclass ThreadDeletedclass ThreadExistsclass ToolFailedclass UndeclaredWriteclass UnknownStateKeyclass UnsatisfiedJoinclass AuthenticationErrorclass CancelledErrorclass ConfigurationErrorclass ContextErrorclass InvalidInputErrorclass NotFoundErrorclass ProcessingErrorclass SimpleErrorclass TokenizerErrorclass UnknownErrorclass ValidationErrorclass ImageAuthenticationErrorclass ImageUnknownErrorclass ImageValidationErrorclass InvalidPromptErrorclass UnsupportedOperationtrait AudioIOErrorclass SaveFailedtrait WavErrorclass WavGenerationFailedclass WavSaveFailedclass InvalidInputclass UnsupportedFormatclass UnscriptedCallError
Members list
In this article