Class TaskManagerException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    TaskNotFoundException, TaskSecurityException

    public class TaskManagerException
    extends java.lang.Exception
    TaskManagerException 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.String getMessage()
      java.lang.String getTaskId()
      Gets the id of the task associated to this exception.
      void setTaskId​(java.lang.String aTaskId)
      Sets the id of the task associated to this exception.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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:
        getMessage in class java.lang.Throwable