org.springframework.transaction

Class HeuristicCompletionException

  • All Implemented Interfaces:
    java.io.Serializable


    public class HeuristicCompletionException
    extends TransactionException
    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:
    Serialized Form
    • Constructor Summary

      Constructors 
      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

      • STATE_UNKNOWN

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

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

        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.
        Parameters:
        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)