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
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Concrete methods

final override def isRecoverable: Boolean

DEPRECATED: Use type-level markers instead

DEPRECATED: Use type-level markers instead

Attributes

Definition Classes
def maxRetries: Int

Maximum number of retry attempts recommended.

Maximum number of retry attempts recommended.

Attributes

def retryDelay: Option[Long]

Suggested delay in milliseconds before retrying.

Suggested delay in milliseconds before retrying.

Attributes

Inherited methods

def code: Option[String]

Optional error code for programmatic handling

Optional error code for programmatic handling

Attributes

Inherited from:
LLMError
def context: Map[String, String]

Additional context information

Additional context information

Attributes

Inherited from:
LLMError
def correlationId: Option[String]

Error correlation IDs for debugging

Error correlation IDs for debugging

Attributes

Inherited from:
LLMError
def formatted: String

Formatted error message with context

Formatted error message with context

Attributes

Inherited from:
LLMError
def productElementName(n: Int): String

Attributes

Inherited from:
Product
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def productPrefix: String

Attributes

Inherited from:
Product

Inherited and Abstract methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
def message: String

Human-readable error message

Human-readable error message

Attributes

Inherited from:
LLMError
def productArity: Int

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product