Package org.kie.internal.task.exception

## Class TaskException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - org.kie.internal.task.exception.TaskException

- All Implemented Interfaces:
    `java.io.Serializable`

      public abstract class TaskException
      extends java.lang.RuntimeException

  Base class for all exceptions for the task related activities see org.jbpm.services.task.service.TaskServiceSession#addTask(org.jbpm.services.task.Task, ContentData)
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `TaskException​(java.lang.String message)` |
    `TaskException​(java.lang.String message, java.lang.Throwable cause)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `isRecoverable()` |
    `void` | `setRecoverable​(boolean recoverable)` |

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

    - #### TaskException

          public TaskException​(java.lang.String message)

    - #### TaskException

          public TaskException​(java.lang.String message,
                               java.lang.Throwable cause)

  - ### Method Detail

    - #### isRecoverable

          public boolean isRecoverable()

    - #### setRecoverable

          public void setRecoverable​(boolean recoverable)