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 SummaryFieldsModifier and TypeFieldDescriptionstatic final intCommitted outcome state.static final intMixed outcome state.static final intRolledback outcome state.static final intUnknown outcome state.
- 
Constructor SummaryConstructorsConstructorDescriptionHeuristicCompletionException(int outcomeState, Throwable cause) Constructor for HeuristicCompletionException.
- 
Method SummaryModifier and TypeMethodDescriptionintReturn the outcome state of the transaction state, as one of the constants in this class.static StringgetStateString(int state) Methods inherited from class org.springframework.core.NestedRuntimeExceptioncontains, getMostSpecificCause, getRootCauseMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Field Details- 
STATE_UNKNOWNpublic static final int STATE_UNKNOWNUnknown outcome state.- See Also:
 
- 
STATE_COMMITTEDpublic static final int STATE_COMMITTEDCommitted outcome state.- See Also:
 
- 
STATE_ROLLED_BACKpublic static final int STATE_ROLLED_BACKRolledback outcome state.- See Also:
 
- 
STATE_MIXEDpublic static final int STATE_MIXEDMixed outcome state.- See Also:
 
 
- 
- 
Constructor Details- 
HeuristicCompletionExceptionConstructor for HeuristicCompletionException.- Parameters:
- outcomeState- the outcome state of the transaction
- cause- the root cause from the transaction API in use
 
 
- 
- 
Method Details- 
getStateString
- 
getOutcomeStatepublic int getOutcomeState()Return the outcome state of the transaction state, as one of the constants in this class.
 
-