commonj.work
Class WorkCompletedException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--commonj.work.WorkException
                    |
                    +--commonj.work.WorkCompletedException
All Implemented Interfaces:
java.io.Serializable

public class WorkCompletedException
extends WorkException

This exception indicates that a Work started but completed with an exception.

See Also:
Serialized Form

Constructor Summary
WorkCompletedException()
          Constructor for a WorkCompletedException
WorkCompletedException(java.lang.String message)
          Constructor for a WorkCompletedException
WorkCompletedException(java.lang.String message, java.util.List list)
          Constructor for a WorkCompletedException
WorkCompletedException(java.lang.String message, java.lang.Throwable cause)
          Constructor for a WorkCompletedException
WorkCompletedException(java.lang.Throwable cause)
          Constructor for a WorkCompletedException
 
Method Summary
 java.util.List getExceptionList()
          This allows a list of exceptions to be returned.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, 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

public WorkCompletedException()
Constructor for a WorkCompletedException


WorkCompletedException

public WorkCompletedException(java.lang.String message)
Constructor for a WorkCompletedException

Parameters:
message -

WorkCompletedException

public WorkCompletedException(java.lang.String message,
                              java.lang.Throwable cause)
Constructor for a WorkCompletedException

Parameters:
message -
cause -

WorkCompletedException

public WorkCompletedException(java.lang.Throwable cause)
Constructor for a WorkCompletedException

Parameters:
cause -

WorkCompletedException

public WorkCompletedException(java.lang.String message,
                              java.util.List list)
Constructor for a WorkCompletedException

Parameters:
message -
list -
Method Detail

getExceptionList

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.


Copyright BEA Systems, Inc. and International Business Machines Corp 2003. All rights reserved.