Package com.adobe.granite.taskmanagement
Class TaskManagerException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.adobe.granite.taskmanagement.TaskManagerException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
TaskNotFoundException,TaskSecurityException
public class TaskManagerException extends java.lang.ExceptionTaskManagerException is the parent exception for all exceptions thrown out of TaskManager.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TaskManagerException()Creates a new instance of TaskManagerException.TaskManagerException(java.lang.String message)Creates a new instance of TaskManagerException.TaskManagerException(java.lang.String message, java.lang.StackTraceElement[] stack)Creates a new instance of TaskManagerException.TaskManagerException(java.lang.String message, java.lang.Throwable cause)Creates a new instance of TaskManagerException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessage()java.lang.StringgetTaskId()Gets the id of the task associated to this exception.voidsetTaskId(java.lang.String aTaskId)Sets the id of the task associated to this exception.
-
-
-
Constructor Detail
-
TaskManagerException
public TaskManagerException()
Creates a new instance of TaskManagerException.
-
TaskManagerException
public TaskManagerException(java.lang.String message)
Creates a new instance of TaskManagerException.- Parameters:
message- Message for this error.
-
TaskManagerException
public TaskManagerException(java.lang.String message, java.lang.Throwable cause)Creates a new instance of TaskManagerException.- Parameters:
message- Message for this error.cause- Cause of the exception.
-
TaskManagerException
public TaskManagerException(java.lang.String message, java.lang.StackTraceElement[] stack)Creates a new instance of TaskManagerException.- Parameters:
message- Message for this error.stack- Stack trace for this exception.
-
-
Method Detail
-
setTaskId
public void setTaskId(java.lang.String aTaskId)
Sets the id of the task associated to this exception.- Parameters:
aTaskId- String containing the task id.
-
getTaskId
public java.lang.String getTaskId()
Gets the id of the task associated to this exception.- Returns:
- String containing the task id.
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
-