OptimisticLockFailure

org.llm4s.error.OptimisticLockFailure
final case class OptimisticLockFailure(message: String, memoryId: String, attemptedVersion: Long) extends LLMError

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

Members list

Value members

Inherited methods

def code: Option[String]

Optional error code for programmatic handling

Optional error code for programmatic handling

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
final override def isRecoverable: Boolean

DEPRECATED: Use type-level markers instead

DEPRECATED: Use type-level markers instead

Attributes

Definition Classes
RecoverableError -> LLMError
Inherited from:
RecoverableError (hidden)
def maxRetries: Int

Maximum number of retry attempts recommended.

Maximum number of retry attempts recommended.

Attributes

Inherited from:
RecoverableError (hidden)
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def retryDelay: Option[Long]

Suggested delay in milliseconds before retrying.

Suggested delay in milliseconds before retrying.

Attributes

Inherited from:
RecoverableError (hidden)

Concrete fields

override val context: Map[String, String]

Additional context information

Additional context information

Attributes