Class HeuristicCompletionException

  • All Implemented Interfaces:

    public class HeuristicCompletionException
    extends TransactionException
    Exception that represents a transaction failure caused by a heuristic decision on the side of the transaction coordinator.
    Rod Johnson, Juergen Hoeller
    See Also:
    Serialized Form
    • Constructor Summary

      Constructor and Description
      HeuristicCompletionException(int outcomeState, java.lang.Throwable cause)
      Constructor for HeuristicCompletionException.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      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) 
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail


        public static final int STATE_UNKNOWN
        Unknown outcome state.
        See Also:
        Constant Field Values

        public static final int STATE_COMMITTED
        Committed outcome state.
        See Also:
        Constant Field Values

        public static final int STATE_ROLLED_BACK
        Rolledback outcome state.
        See Also:
        Constant Field Values
    • Constructor Detail

      • HeuristicCompletionException

        public HeuristicCompletionException(int outcomeState,
                                            java.lang.Throwable cause)
        Constructor for HeuristicCompletionException.
        outcomeState - the outcome state of the transaction
        cause - the root cause from the transaction API in use
    • Method Detail

      • getStateString

        public static java.lang.String getStateString(int state)