Package bitronix.tm.twopc
Class PhaseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
bitronix.tm.twopc.PhaseException
- All Implemented Interfaces:
Serializable
Thrown when a phase exection has thrown one or more exception(s).
- Author:
- lorban
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPhaseException(List<Exception> exceptions, List<XAResourceHolderState> resourceStates) -
Method Summary
Modifier and TypeMethodDescriptionGet the list of exceptions that have been thrown during a phase execution.Get the list of resource which threw an exception during a phase execution.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PhaseException
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
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
Get the list of resource which threw an exception during a phase execution. This list always contains exactly one resource per exception present ingetExceptions()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.
-