Class 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 Detail

      • AttachmentPersistenceException

        public AttachmentPersistenceException​(String attachmentId,
                                              String taskId,
                                              Throwable cause)
    • Method Detail

      • getAttachmentId

        public String getAttachmentId()
      • getTaskId

        public String getTaskId()