X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/0287272a3b9924f3ba9aeded570a32841d3e1196..d08508e6efbb0f993a6b7bd633d6406d0575db34:/src/main/java/org/asamk/signal/manager/AttachmentInvalidException.java diff --git a/src/main/java/org/asamk/signal/manager/AttachmentInvalidException.java b/src/main/java/org/asamk/signal/manager/AttachmentInvalidException.java new file mode 100644 index 00000000..78fba6e0 --- /dev/null +++ b/src/main/java/org/asamk/signal/manager/AttachmentInvalidException.java @@ -0,0 +1,12 @@ +package org.asamk.signal.manager; + +public class AttachmentInvalidException extends Exception { + + public AttachmentInvalidException(String message) { + super(message); + } + + public AttachmentInvalidException(String attachment, Exception e) { + super(attachment + ": " + e.getMessage()); + } +}