public class KVTransactionException extends KVDatabaseException
KVTransaction
fails.Constructor and Description |
---|
KVTransactionException(KVTransaction kvt) |
KVTransactionException(KVTransaction kvt,
String message) |
KVTransactionException(KVTransaction kvt,
String message,
Throwable cause) |
KVTransactionException(KVTransaction kvt,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
KVTransactionException |
duplicate()
Create a duplicate of this exception, with the current thread's stack frames prepended.
|
KVTransaction |
getTransaction()
Get the
KVTransaction that generated this exception. |
getStore
clone, rethrow
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public KVTransactionException(KVTransaction kvt)
public KVTransactionException(KVTransaction kvt, Throwable cause)
public KVTransactionException(KVTransaction kvt, String message)
public KVTransactionException(KVTransaction kvt, String message, Throwable cause)
public KVTransaction getTransaction()
KVTransaction
that generated this exception.public KVTransactionException duplicate()
KVException
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.
duplicate
in class KVException
ThrowableUtil.prependCurrentStackTrace(java.lang.Throwable)
Copyright © 2022. All rights reserved.