bitronix.tm.twopc
Class PhaseException

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

public class PhaseException
extends java.lang.Exception

Thrown when a phase exection has thrown one or more exception(s).

© Bitronix Software

Author:
lorban
See Also:
Serialized Form

Constructor Summary
PhaseException(java.util.List exceptions, java.util.List resources)
           
 
Method Summary
 java.util.List getExceptions()
          Get the list of exceptions that have been thrown during a phase execution.
 java.lang.String getMessage()
           
 java.util.List getResources()
          Get the list of resource which threw an exception during a phase execution.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PhaseException

public PhaseException(java.util.List exceptions,
                      java.util.List resources)
Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getExceptions

public java.util.List 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.

getResources

public java.util.List getResources()
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.