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 Objecttrait Matchableclass Any
- Self type
-
ErrorRecovery.type
Members list
Type members
Classlikes
Circuit breaker pattern for service resilience
Circuit breaker pattern for service resilience
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
case object Closed extends CircuitState
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait CircuitStateclass Objecttrait Matchableclass AnyShow all
- Self type
-
Closed.type
case object HalfOpen extends CircuitState
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait CircuitStateclass Objecttrait Matchableclass AnyShow all
- Self type
-
HalfOpen.type
case object Open extends CircuitState
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait CircuitStateclass Objecttrait Matchableclass AnyShow 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
In this article