]> nmode's Git Repositories - signal-cli/blobdiff - src/main/java/org/asamk/textsecure/GroupNotFoundException.java
Fix exceptions to work over dbus
[signal-cli] / src / main / java / org / asamk / textsecure / GroupNotFoundException.java
index 57f4cef8fe2bbce244e8cdc1330fc8cdcae987f3..6c4cf5b13462d5d0714f8032dc4029e931841751 100644 (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 GroupNotFoundException(byte[] groupId) {
-        super();
-        this.groupId = groupId;
+public class GroupNotFoundException extends DBusExecutionException {
+
+    public GroupNotFoundException(String message) {
+        super(message);
     }
 
-    public byte[] getGroupId() {
-        return groupId;
+    public GroupNotFoundException(byte[] groupId) {
+        super("Group not found: " + Base64.encodeBytes(groupId));
     }
 }