OptimisticLockFailure
org.llm4s.error.OptimisticLockFailure
final case class OptimisticLockFailure(message: String, memoryId: String, attemptedVersion: Long) extends LLMError, RecoverableError
Error indicating a concurrent modification was detected during an optimistic update.
Returned when an update is attempted but the record has been modified by another concurrent writer since it was last read. Callers should re-read the record and retry the operation.
Value parameters
- attemptedVersion
-
The version number that was expected but not found
- memoryId
-
The ID of the memory record that was concurrently modified
- message
-
Human-readable error description
Attributes
- Graph
-
- Supertypes
-
trait RecoverableErrortrait LLMErrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article