X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/2a0f9f76299f968f1c198de149a7702c32184f20..3d560672720eb82ca816a96aa8ea6eb45506b38e:/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()); } }