Package pro.taskana.task.api.exceptions
Class InvalidCallbackStateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- pro.taskana.common.api.exceptions.TaskanaException
-
- pro.taskana.task.api.exceptions.InvalidCallbackStateException
-
- All Implemented Interfaces:
Serializable
public class InvalidCallbackStateException extends TaskanaException
This exception is thrown when the callback state of the Task doesn't allow the requested operation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidCallbackStateException(String taskId, CallbackState taskCallbackState, CallbackState... requiredCallbackStates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CallbackState[]getRequiredCallbackStates()CallbackStategetTaskCallbackState()StringgetTaskId()-
Methods inherited from class pro.taskana.common.api.exceptions.TaskanaException
ensureNullIsHandled, getErrorCode, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
ERROR_KEY
public static final String ERROR_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InvalidCallbackStateException
public InvalidCallbackStateException(String taskId, CallbackState taskCallbackState, CallbackState... requiredCallbackStates)
-
-
Method Detail
-
getTaskCallbackState
public CallbackState getTaskCallbackState()
-
getRequiredCallbackStates
public CallbackState[] getRequiredCallbackStates()
-
getTaskId
public String getTaskId()
-
-