Package io.permazen.kv
Class KVTransactionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.permazen.kv.KVException
io.permazen.kv.KVDatabaseException
io.permazen.kv.KVTransactionException
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
RetryKVTransactionException,StaleKVTransactionException
Thrown when an operation on a
KVTransaction fails.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionKVTransactionException(KVTransaction kvt, String message) KVTransactionException(KVTransaction kvt, String message, Throwable cause) KVTransactionException(KVTransaction kvt, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionCreate a duplicate of this exception, with the current thread's stack frames prepended.Get theKVTransactionthat generated this exception.Methods inherited from class io.permazen.kv.KVDatabaseException
getStoreMethods inherited from class io.permazen.kv.KVException
clone, rethrowMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
KVTransactionException
-
KVTransactionException
-
KVTransactionException
-
KVTransactionException
-
-
Method Details
-
getTransaction
Get theKVTransactionthat generated this exception.- Returns:
- the associated transaction
-
duplicate
Description copied from class:KVExceptionCreate 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:
duplicatein classKVException- Returns:
- duplicate of this exception with the current thread's stack frame context
- See Also:
-