com.ibm.websphere.asynchbeans

Class WorkCompletedException

  1. java.lang.Object
  2. extended byjava.lang.Throwable
  3. extended byjava.lang.Exception
  4. extended bycom.ibm.ws.exception.WsException
  5. extended bycom.ibm.websphere.asynchbeans.WorkException
  6. extended bycom.ibm.websphere.asynchbeans.WorkCompletedException
All implemented interfaces:
com.ibm.ws.exception.WsNestedException, java.io.Serializable

  1. public class WorkCompletedException
  2. extends WorkException
This exception indicates that a Work started but completed with an exception.
See Also:
Serialized Form

Constructor Summary

Constructor and Description
WorkCompletedException()
WorkCompletedException(java.lang.String message)
WorkCompletedException(java.lang.String message,java.util.List list)
Method WorkCompletedException.
WorkCompletedException(java.lang.String message,java.lang.Throwable cause)
WorkCompletedException(java.lang.Throwable cause)

Method Summary

Modifier and Type Method and Description
  1. java.util.List
getExceptionList()
This allows a list of exceptions to be returned.
  1. boolean
getRolledBack()
This returns true if a global tran was created and not commited because asynchronous element returned.
  1. void
setRolledBack(boolean f)
Methods inherited from class com.ibm.ws.exception.WsException
getCause, initCause
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

WorkCompletedException

  1. public WorkCompletedException()
See Also:
Object.Object()

WorkCompletedException

  1. public WorkCompletedException(java.lang.String message)
See Also:
Throwable.Throwable(String)

WorkCompletedException

  1. public WorkCompletedException(java.lang.Throwable cause)
See Also:
WsException.WsException(Throwable)

WorkCompletedException

  1. public WorkCompletedException(java.lang.String message,
  2. java.lang.Throwable cause)
See Also:
WsException.WsException(String, Throwable)

WorkCompletedException

  1. public WorkCompletedException(java.lang.String message,
  2. java.util.List list)
Method WorkCompletedException.
Parameters:
message -
list -

Method Detail

getExceptionList

  1. public java.util.List getExceptionList( )
This allows a list of exceptions to be returned. When the Work fails to complete because of an exception then the list has a single entry and this is the same as if getCause was called.
Returns:
The list of null is no exception is present.

setRolledBack

  1. public void setRolledBack(boolean f)

getRolledBack

  1. public boolean getRolledBack()
This returns true if a global tran was created and not commited because asynchronous element returned. Such a uncommitted global transaction will be rolled back. A user created global transaction must be completed by the user.
Returns:
True if the system rolled back the transaction.