Class PhaseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
bitronix.tm.twopc.PhaseException
All Implemented Interfaces:
Serializable

public class PhaseException extends Exception
Thrown when a phase exection has thrown one or more exception(s).
Author:
lorban
See Also:
  • Constructor Details

  • Method Details

    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • getExceptions

      public List<Exception> getExceptions()
      Get the list of exceptions that have been thrown during a phase execution.
      Returns:
      the list of exceptions that have been thrown during a phase execution.
    • getResourceStates

      public List<XAResourceHolderState> getResourceStates()
      Get the list of resource which threw an exception during a phase execution. This list always contains exactly one resource per exception present in getExceptions() list. Indices of both list always match a resource against the exception it threw.
      Returns:
      the list of resource which threw an exception during a phase execution.