X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/27d9424f1e7f607ac2dfad5b2164d065ffb79ef7..78252a13df63baf83a8bb17b88bae03db708a3d0:/src/main/java/org/asamk/textsecure/AttachmentInvalidException.java diff --git a/src/main/java/org/asamk/textsecure/AttachmentInvalidException.java b/src/main/java/org/asamk/textsecure/AttachmentInvalidException.java index bf227269..5afa67e3 100644 --- a/src/main/java/org/asamk/textsecure/AttachmentInvalidException.java +++ b/src/main/java/org/asamk/textsecure/AttachmentInvalidException.java @@ -1,14 +1,13 @@ package org.asamk.textsecure; -public class AttachmentInvalidException extends Exception { - private final String attachment; +import org.freedesktop.dbus.exceptions.DBusExecutionException; - public AttachmentInvalidException(String attachment, Exception e) { - super(e); - this.attachment = attachment; +public class AttachmentInvalidException extends DBusExecutionException { + public AttachmentInvalidException(String message) { + super(message); } - public String getAttachment() { - return attachment; + public AttachmentInvalidException(String attachment, Exception e) { + super(attachment + ": " + e.getMessage()); } }