public class HeuristicCompletionException extends TransactionException
Modifier and Type | Field and Description |
---|---|
private int |
outcomeState
The outcome state of the transaction: have some or all resources been committed?
|
static int |
STATE_COMMITTED |
static int |
STATE_MIXED |
static int |
STATE_ROLLED_BACK |
static int |
STATE_UNKNOWN
Values for the outcome state of a heuristically completed transaction.
|
Constructor and Description |
---|
HeuristicCompletionException(int outcomeState,
java.lang.Throwable cause)
Constructor for HeuristicCompletionException.
|
Modifier and Type | Method and Description |
---|---|
int |
getOutcomeState()
Return the outcome state of the transaction state,
as one of the constants in this class.
|
static java.lang.String |
getStateString(int state) |
contains, getMessage, getMostSpecificCause, getRootCause
public static final int STATE_UNKNOWN
public static final int STATE_COMMITTED
public static final int STATE_ROLLED_BACK
public static final int STATE_MIXED
private int outcomeState
public HeuristicCompletionException(int outcomeState, java.lang.Throwable cause)
outcomeState
- the outcome state of the transactioncause
- the root cause from the transaction API in usepublic static java.lang.String getStateString(int state)
public int getOutcomeState()
STATE_UNKNOWN
,
STATE_COMMITTED
,
STATE_ROLLED_BACK
,
STATE_MIXED