mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-31 11:30:39 +00:00
Fix exceptions to work over dbus
This commit is contained in:
parent
2a0f9f7629
commit
3d56067272
3 changed files with 18 additions and 19 deletions
|
@ -1,14 +1,13 @@
|
|||
package org.asamk.textsecure;
|
||||
|
||||
public class AttachmentInvalidException extends Exception {
|
||||
private final String attachment;
|
||||
import org.freedesktop.dbus.exceptions.DBusExecutionException;
|
||||
|
||||
public class AttachmentInvalidException extends DBusExecutionException {
|
||||
public AttachmentInvalidException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public AttachmentInvalidException(String attachment, Exception e) {
|
||||
super(e);
|
||||
this.attachment = attachment;
|
||||
}
|
||||
|
||||
public String getAttachment() {
|
||||
return attachment;
|
||||
super(attachment + ": " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue