NonRecoverableError
org.llm4s.error.NonRecoverableError
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 _: NonRecoverableError => // Report failure to user
}
Attributes
- See also
-
RecoverableError for errors that may succeed on retry
- Graph
-
- Supertypes
- Known subtypes
-
class AuthenticationErrorclass ConfigurationErrorclass ContextErrorclass InvalidInputErrorclass NotFoundErrorclass ProcessingErrorclass SimpleErrorclass TokenizerErrorclass UnknownErrorclass ValidationError
Members list
In this article