Package io.permazen.kv.mvcc
Class TransactionConflictException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.permazen.kv.KVException
io.permazen.kv.KVDatabaseException
io.permazen.kv.KVTransactionException
io.permazen.kv.RetryKVTransactionException
io.permazen.kv.mvcc.TransactionConflictException
- All Implemented Interfaces:
Serializable
,Cloneable
Exception thrown when a transaction fails because of an MVCC conflict.
- See Also:
-
Constructor Summary
ConstructorDescriptionTransactionConflictException
(KVTransaction kvt, Conflict conflict) TransactionConflictException
(KVTransaction kvt, Conflict conflict, String message) -
Method Summary
Modifier and TypeMethodDescriptionCreate a duplicate of this exception, with the current thread's stack frames prepended.Get the conflict that generated this exception.Methods inherited from class io.permazen.kv.KVTransactionException
getTransaction
Methods inherited from class io.permazen.kv.KVDatabaseException
getStore
Methods inherited from class io.permazen.kv.KVException
clone, rethrow
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TransactionConflictException
-
TransactionConflictException
-
-
Method Details
-
getConflict
Get the conflict that generated this exception.- Returns:
- the conflict causing this exception
-
duplicate
Description copied from class:KVException
Create a duplicate of this exception, with the current thread's stack frames prepended.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.- Overrides:
duplicate
in classRetryKVTransactionException
- Returns:
- duplicate of this exception with the current thread's stack frame context
- See Also:
-