X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/10719a443a88d06ef5734f0e17f71316b1473edf..eabd361405a54a5b7122bf537cb299306f098e45:/src/main/java/org/asamk/signal/AttachmentInvalidException.java diff --git a/src/main/java/org/asamk/signal/AttachmentInvalidException.java b/src/main/java/org/asamk/signal/AttachmentInvalidException.java new file mode 100644 index 00000000..8a023f62 --- /dev/null +++ b/src/main/java/org/asamk/signal/AttachmentInvalidException.java @@ -0,0 +1,13 @@ +package org.asamk.signal; + +import org.freedesktop.dbus.exceptions.DBusExecutionException; + +public class AttachmentInvalidException extends DBusExecutionException { + public AttachmentInvalidException(String message) { + super(message); + } + + public AttachmentInvalidException(String attachment, Exception e) { + super(attachment + ": " + e.getMessage()); + } +}