com.ibm.websphere.ActivitySession
Class MixedOutcomeException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.ibm.websphere.ActivitySession.ActivitySessionException
              extended bycom.ibm.websphere.ActivitySession.MixedOutcomeException
All Implemented Interfaces:
java.io.Serializable

public class MixedOutcomeException
extends ActivitySessionException

Thrown if the ActivitySessionResources enlisted in an ActivitySesison were not all completed in the same direction. An array of NotProcessedExceptions indicates the resources that were Reset.

See Also:
Serialized Form

Constructor Summary
MixedOutcomeException(java.lang.String msg, java.lang.Exception[] excs)
          Constructor.
 
Method Summary
 java.lang.Exception[] getFailedResourceExceptions()
          This method provides access to the exceptions which contain the details about the failing resources and unexpected errors.
 java.lang.String toString()
           
 
Methods inherited from class com.ibm.websphere.ActivitySession.ActivitySessionException
getNestedException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MixedOutcomeException

public MixedOutcomeException(java.lang.String msg,
                             java.lang.Exception[] excs)
Constructor.

Parameters:
msg - The Exception message
excs - An array of at most two Exceptions. The first exception in the array is of type NotProcessedException and contains messages from all failing resources. The optional second exception is of type SystemException and represents the occurence of one or more Unexpected errors.
Method Detail

getFailedResourceExceptions

public java.lang.Exception[] getFailedResourceExceptions()
This method provides access to the exceptions which contain the details about the failing resources and unexpected errors.

Returns:
The array of at most two exceptions.

toString

public java.lang.String toString()