Fix exceptions to work over dbus

This commit is contained in:
AsamK 2015-12-30 17:39:07 +01:00
parent 2a0f9f7629
commit 3d56067272
3 changed files with 18 additions and 19 deletions

View file

@ -1,14 +1,14 @@
package org.asamk.textsecure;
public class GroupNotFoundException extends Exception {
private final byte[] groupId;
import org.freedesktop.dbus.exceptions.DBusExecutionException;
public class GroupNotFoundException extends DBusExecutionException {
public GroupNotFoundException(String message) {
super(message);
}
public GroupNotFoundException(byte[] groupId) {
super();
this.groupId = groupId;
}
public byte[] getGroupId() {
return groupId;
super("Group not found: " + Base64.encodeBytes(groupId));
}
}