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