Package org.springframework.transaction
Class HeuristicCompletionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.transaction.TransactionException
org.springframework.transaction.HeuristicCompletionException
- All Implemented Interfaces:
Serializable
Exception that represents a transaction failure caused by a heuristic
decision on the side of the transaction coordinator.
- Since:
- 17.03.2003
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Committed outcome state.static final int
Mixed outcome state.static final int
Rolledback outcome state.static final int
Unknown outcome state. -
Constructor Summary
ConstructorDescriptionHeuristicCompletionException
(int outcomeState, Throwable cause) Constructor for HeuristicCompletionException. -
Method Summary
Modifier and TypeMethodDescriptionint
Return the outcome state of the transaction state, as one of the constants in this class.static String
getStateString
(int state) Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
STATE_UNKNOWN
public static final int STATE_UNKNOWNUnknown outcome state.- See Also:
-
STATE_COMMITTED
public static final int STATE_COMMITTEDCommitted outcome state.- See Also:
-
STATE_ROLLED_BACK
public static final int STATE_ROLLED_BACKRolledback outcome state.- See Also:
-
STATE_MIXED
public static final int STATE_MIXEDMixed outcome state.- See Also:
-
-
Constructor Details
-
HeuristicCompletionException
Constructor for HeuristicCompletionException.- Parameters:
outcomeState
- the outcome state of the transactioncause
- the root cause from the transaction API in use
-
-
Method Details
-
getStateString
-
getOutcomeState
public int getOutcomeState()Return the outcome state of the transaction state, as one of the constants in this class.
-