com.adobe.idp.taskmanager.dsc.client.task
Class CompleteTaskException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.adobe.idp.taskmanager.dsc.client.task.TaskManagerException
              extended by com.adobe.idp.taskmanager.dsc.client.task.CompleteTaskException
All Implemented Interfaces:
java.io.Serializable

public class CompleteTaskException
extends TaskManagerException

Exception thrown if there was an error when completing a task. This exception can contain a list of exceptions if more than one exceptional circumstance was encountered while completing the task.

See Also:
Serialized Form

Constructor Summary
CompleteTaskException(long aTaskId)
          Constructs a new exception using the task identifier.
 
Method Summary
 void addException(TaskManagerException exception)
          Adds an additional exception to this exception.
 java.util.List getExceptions()
          Retrieves the full list of exceptions.
 java.lang.String getMessage()
          Retrieves a compound message for all of the exceptions contained in the list of exceptions.
 long getTaskId()
          Retrieves the task identifier for this exception.
 
Methods inherited from class com.adobe.idp.taskmanager.dsc.client.task.TaskManagerException
getLocalizedMessage, getRootCause, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompleteTaskException

public CompleteTaskException(long aTaskId)
Constructs a new exception using the task identifier.

Parameters:
aTaskId - The task identifier.
Method Detail

addException

public void addException(TaskManagerException exception)
Adds an additional exception to this exception.

Parameters:
exception - The exception to add.

getExceptions

public java.util.List getExceptions()
Retrieves the full list of exceptions. It is safe to cast items retrieved from the list to a TaskManagerException.

Returns:
A List of TaskManagerException objects (or extending exceptions).

getTaskId

public long getTaskId()
Retrieves the task identifier for this exception.

Overrides:
getTaskId in class TaskManagerException
Returns:
TaskId The task identifier.

getMessage

public java.lang.String getMessage()
Retrieves a compound message for all of the exceptions contained in the list of exceptions.

Overrides:
getMessage in class TaskManagerException
Returns:
The compound message for the list of exceptions.


[an error occurred while processing this directive] [an error occurred while processing this directive]