Package io.permazen.kv
Class StaleKVTransactionException
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.StaleKVTransactionException
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
KVTransactionTimeoutException
Thrown when an operation is attempted on a
KVTransaction
that is no longer usable.- See Also:
-
Constructor Summary
ConstructorDescriptionStaleKVTransactionException
(KVTransaction kvt, String message) StaleKVTransactionException
(KVTransaction kvt, String message, Throwable cause) StaleKVTransactionException
(KVTransaction kvt, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionCreate a duplicate of this exception, with the current thread's stack frames prepended.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
-
StaleKVTransactionException
-
StaleKVTransactionException
-
StaleKVTransactionException
-
StaleKVTransactionException
-
-
Method Details
-
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 classKVTransactionException
- Returns:
- duplicate of this exception with the current thread's stack frame context
- See Also:
-