Package pro.taskana.task.api.exceptions
Class AttachmentPersistenceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- pro.taskana.common.api.exceptions.TaskanaException
-
- pro.taskana.task.api.exceptions.AttachmentPersistenceException
-
- All Implemented Interfaces:
Serializable
public class AttachmentPersistenceException extends TaskanaException
This exception is thrown when an Attachment should be inserted to the DB, but it does already exist.
This may happen when a not inserted Attachment with the same id will be added twice on a Task. This can't happen if the correct Task-Methods will be used instead of the List ones.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AttachmentPersistenceException(String attachmentId, String taskId, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttachmentId()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
-
-