com.ibm.websphere.ActivitySession
Class MixedOutcomeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.ibm.websphere.ActivitySession.ActivitySessionException
-
- com.ibm.websphere.ActivitySession.MixedOutcomeException
-
- All Implemented Interfaces:
- java.io.Serializable
public class MixedOutcomeException extends ActivitySessionException
AMixedOutcomeException
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 theNotProcessedException
that is the first element in the array returned bygetFailedResourceExceptions
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description MixedOutcomeException(java.lang.String msg, java.lang.Exception[] excs)
Constructor.
-
Method Summary
Methods Modifier and Type Method and Description 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
-
-
-
-
Constructor Detail
-
MixedOutcomeException
public MixedOutcomeException(java.lang.String msg, java.lang.Exception[] excs)
Constructor.- Parameters:
msg
- The Exception messageexcs
- 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
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()
- Overrides:
toString
in classjava.lang.Throwable
-
-