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
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.
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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAttachmentPersistenceException(String attachmentId, String taskId, Throwable cause) -
Method Summary
Methods inherited from class pro.taskana.common.api.exceptions.TaskanaException
ensureNullIsHandled, getErrorCode, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
ERROR_KEY
- See Also:
-
-
Constructor Details
-
AttachmentPersistenceException
-
-
Method Details
-
getAttachmentId
-
getTaskId
-