ErrorRecovery

org.llm4s.error.ErrorRecovery
object ErrorRecovery

Advanced pattern matching for error recovery and intelligent retry logic.

Uses Scala's powerful pattern matching to implement sophisticated error handling strategies with type-safe recovery patterns.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

class CircuitBreaker[A](failureThreshold: Int, recoveryTimeout: Duration)

Circuit breaker pattern for service resilience

Circuit breaker pattern for service resilience

Attributes

Supertypes
class Object
trait Matchable
class Any
sealed trait CircuitState

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Closed
object HalfOpen
object Open
case object Closed extends CircuitState

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait CircuitState
class Object
trait Matchable
class Any
Show all
Self type
Closed.type
case object HalfOpen extends CircuitState

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait CircuitState
class Object
trait Matchable
class Any
Show all
Self type
HalfOpen.type
case object Open extends CircuitState

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait CircuitState
class Object
trait Matchable
class Any
Show all
Self type
Open.type

Value members

Concrete methods

def recoverWithBackoff[A](operation: () => Result[A], maxAttempts: Int, baseDelay: Duration): Result[A]

Intelligent error recovery with exponential backoff

Intelligent error recovery with exponential backoff

Attributes