Package com.pkgrove.pkgrovekit.storage
Class PreconditionFailedException
-
- All Implemented Interfaces:
-
java.io.Serializable
public final class PreconditionFailedException extends StorageException
A WriteCondition was not met — for WriteCondition.IfAbsent someone else already created the key (lost the commit race); for WriteCondition.IfMatch the object changed underneath (stale etag). This is the CONFLICT signal for checkpoints/manifests: the caller must reload and decide, never overwrite.
-
-
Constructor Summary
Constructors Constructor Description PreconditionFailedException(ObjectKey key, WriteCondition condition, Throwable cause)
-
Method Summary
Modifier and Type Method Description final ObjectKeygetKey()final WriteConditiongetCondition()-
Methods inherited from class com.pkgrove.pkgrovekit.storage.StorageException
getRetrySafe -
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
PreconditionFailedException
PreconditionFailedException(ObjectKey key, WriteCondition condition, Throwable cause)
-
-
Method Detail
-
getCondition
final WriteCondition getCondition()
-
-
-
-