public class RetryTransactionException extends KVTransactionException
KVTransactionresults in a conflict or other condition requiring that the transaction be retried.
Note: although it is usually the case, a
does not necessarily mean that the transaction failed. In some situations
(e.g., involving failed network communication) it may not be possible to determine
whether a transaction succeeded or not, and this situation is indicated by throwing a
RetryTransactionException. Whether and how often such a "false negative" can
occur is a function of the
KVDatabase implementation being used; ideally, all
transactions are idempotent and therefore correct in either case.
|Constructor and Description|
|Modifier and Type||Method and Description|
Create a duplicate of this exception, with the current thread's stack frames prepended.
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RetryTransactionException(KVTransaction kvt)
public RetryTransactionException duplicate()
This allows the "same" exception to be thrown multiple times from different locations
with different outer stack frames. The
KVException.clone() method is used to copy this instance.
Copyright © 2018. All rights reserved.