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
ConstructorDescriptionKVTransactionException
(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 theKVTransaction
that generated this exception.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
-
KVTransactionException
-
KVTransactionException
-
KVTransactionException
-
KVTransactionException
-
-
Method Details
-
getTransaction
Get theKVTransaction
that generated this exception.- Returns:
- the associated transaction
-
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 classKVException
- Returns:
- duplicate of this exception with the current thread's stack frame context
- See Also:
-