RecoverableError
org.llm4s.error.RecoverableError
trait RecoverableError extends LLMError
Marker trait for errors that may succeed on retry.
Errors extending this trait indicate transient failures where retrying the operation with appropriate backoff strategies may succeed. Examples include rate limiting, network timeouts, and temporary service unavailability.
Use pattern matching or LLMError.isRecoverable to check recoverability:
error match {
case _: RecoverableError => // Apply retry logic
case _: NonRecoverableError => // Report failure
}
Attributes
- See also
-
NonRecoverableError for errors that cannot be recovered
ErrorRecovery for retry utilities
- Graph
-
- Supertypes
- Known subtypes
-
class APIErrorclass ExecutionErrorclass NetworkErrorclass OptimisticLockFailureclass RateLimitErrorclass ServiceErrorclass SystemErrorclass TimeoutError
Members list
In this article