bitronix.tm.internal
Class BitronixMultiSystemException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.transaction.SystemException
              extended bybitronix.tm.internal.BitronixSystemException
                  extended bybitronix.tm.internal.BitronixMultiSystemException
All Implemented Interfaces:
java.io.Serializable

public class BitronixMultiSystemException
extends BitronixSystemException

Subclass of SystemException supporting nested Throwables.

© Bitronix Software

Author:
lorban
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.transaction.SystemException
errorCode
 
Constructor Summary
BitronixMultiSystemException(java.lang.String string, java.util.List exceptions, java.util.List resourceStates)
           
 
Method Summary
 java.util.List getExceptions()
          Get the list of exceptions that have been thrown during execution.
 java.lang.String getMessage()
           
 java.util.List getResourceStates()
          Get the list of XAResourceHolderStates which threw an exception during execution.
 boolean isUnilateralRollback()
           
 
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

BitronixMultiSystemException

public BitronixMultiSystemException(java.lang.String string,
                                    java.util.List exceptions,
                                    java.util.List resourceStates)
Method Detail

getMessage

public java.lang.String getMessage()

isUnilateralRollback

public boolean isUnilateralRollback()

getExceptions

public java.util.List getExceptions()
Get the list of exceptions that have been thrown during execution.

Returns:
the list of exceptions that have been thrown during execution.

getResourceStates

public java.util.List getResourceStates()
Get the list of XAResourceHolderStates which threw an exception during 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 execution.