public class MixedOutcomeException extends ActivitySessionException
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
.Constructor and Description |
---|
MixedOutcomeException(java.lang.String msg,
java.lang.Exception[] excs)
Constructor.
|
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() |
getNestedException
public MixedOutcomeException(java.lang.String msg, java.lang.Exception[] excs)
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.public java.lang.Exception[] getFailedResourceExceptions()
public java.lang.String toString()
toString
in class java.lang.Throwable