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

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.adobe.idp.taskmanager.dsc.client.task.TaskManagerException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ActionInstanceNotRunningException, ActionNotFoundException, AttachmentNotFoundException, CompleteTaskException, FormNotSavedException, InvalidRouteException, NoActionSelectedException, NoRouteSelectedException, TaskNotFoundException, TaskNotRunningException, TaskPermissionException, WorkflowUserNotFoundException

public class TaskManagerException
extends java.lang.Exception
implements java.io.Serializable

Generic Task Manager Service exception. This exception is inherited by many other more specific Task Manager exceptions.

See Also:
Serialized Form

Constructor Summary
TaskManagerException()
          Default constructor.
TaskManagerException(long aTaskId, java.lang.String aMessage)
          Creates a new exception with the specified task identifier and message.
TaskManagerException(long aTaskId, java.lang.Throwable aException)
          Creates a exception with the specified root exception.
TaskManagerException(java.lang.String aMessage)
          Creates a new exception with the specified message.
TaskManagerException(java.lang.String aMessage, java.lang.StackTraceElement[] aStackTrace)
           
TaskManagerException(java.lang.Throwable aException)
          Creates a new exception with the specified root exception.
TaskManagerException(java.lang.Throwable aException, java.lang.String aMessage)
          Creates a exception with the specified root exception and message.
 
Method Summary
 java.lang.String getLocalizedMessage()
          Retrieves the localized description of this exception.
 java.lang.String getMessage()
          Retrieves the error message for this exception.
 java.lang.Throwable getRootCause()
          Retrieves the root exception.
 long getTaskId()
          Retrieves the task identifier associated with this exception, if it exists.
 void printStackTrace()
          Prints this exception and its stack trace to the standard error stream.
 void printStackTrace(java.io.PrintStream ps)
          Prints this exception and its stack trace to the specified print stream.
 void printStackTrace(java.io.PrintWriter pw)
          Prints this exception and its stack trace to the specified print writer.
 java.lang.String toString()
          Retrieves the short description of this exception.
 
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

TaskManagerException

public TaskManagerException()
Default constructor.


TaskManagerException

public TaskManagerException(java.lang.String aMessage)
Creates a new exception with the specified message.

Parameters:
aMessage - The error message.

TaskManagerException

public TaskManagerException(java.lang.String aMessage,
                            java.lang.StackTraceElement[] aStackTrace)

TaskManagerException

public TaskManagerException(long aTaskId,
                            java.lang.String aMessage)
Creates a new exception with the specified task identifier and message.

Parameters:
aTaskId - The task identifier.
aMessage - The error message.

TaskManagerException

public TaskManagerException(java.lang.Throwable aException,
                            java.lang.String aMessage)
Creates a exception with the specified root exception and message.

Parameters:
aException - The root exception.
aMessage - The error message.

TaskManagerException

public TaskManagerException(long aTaskId,
                            java.lang.Throwable aException)
Creates a exception with the specified root exception.

Parameters:
aException - The root exception.
aTaskId - The task identifier.

TaskManagerException

public TaskManagerException(java.lang.Throwable aException)
Creates a new exception with the specified root exception.

Parameters:
aException - The root exception.
Method Detail

getTaskId

public long getTaskId()
Retrieves the task identifier associated with this exception, if it exists.

Returns:
The task identifier, or 0 if no associated task exists.

getRootCause

public java.lang.Throwable getRootCause()
Retrieves the root exception.


getMessage

public java.lang.String getMessage()
Retrieves the error message for this exception.

Overrides:
getMessage in class java.lang.Throwable
Returns:
The error message for this exception.

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Retrieves the localized description of this exception.

Overrides:
getLocalizedMessage in class java.lang.Throwable
Returns:
The localized description of this exception.

toString

public java.lang.String toString()
Retrieves the short description of this exception.

Overrides:
toString in class java.lang.Throwable
Returns:
The short description of this exception.

printStackTrace

public void printStackTrace()
Prints this exception and its stack trace to the standard error stream.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Prints this exception and its stack trace to the specified print stream.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
ps - The print stream.

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Prints this exception and its stack trace to the specified print writer.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
pw - The print writer.