com.ibm.websphere.ActivitySession

Class MixedOutcomeException

  1. java.lang.Object
  2. extended byjava.lang.Throwable
  3. extended byjava.lang.Exception
  4. extended bycom.ibm.websphere.ActivitySession.ActivitySessionException
  5. extended bycom.ibm.websphere.ActivitySession.MixedOutcomeException
All implemented interfaces:
java.io.Serializable

  1. public class MixedOutcomeException
  2. extends ActivitySessionException
A MixedOutcomeException is thrown by the ActivitySession service to indicate that all of the resources enlisted in an ActivitySession did not complete in the same direction. Details of the resources that were reset are available from the NotProcessedException that is the first element in the array returned by getFailedResourceExceptions.
See Also:
Serialized Form

Constructor Summary

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

Method Summary

Modifier and Type Method and Description
  1. java.lang.Exception[]
getFailedResourceExceptions()
This method provides access to the exceptions which contain the details about the failing resources and unexpected errors.
  1. 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

  1. public MixedOutcomeException(java.lang.String msg,
  2. 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 occurrance of one or more unexpected errors.

Method Detail

getFailedResourceExceptions

  1. 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

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