Sebastian Stenzel преди 1 година
родител
ревизия
f36e2bb4b7
променени са 1 файла, в които са добавени 7 реда и са изтрити 1 реда
  1. 7 1
      src/main/java/org/cryptomator/ui/keyloading/hub/DeviceAlreadyExistsException.java

+ 7 - 1
src/main/java/org/cryptomator/ui/keyloading/hub/DeviceAlreadyExistsException.java

@@ -1,6 +1,12 @@
 package org.cryptomator.ui.keyloading.hub;
 
+import org.cryptomator.cryptolib.api.MasterkeyLoadingFailedException;
+
 /**
  * Thrown, when Hub registerDevice-Request returns with 409
  */
-public class DeviceAlreadyExistsException extends RuntimeException {}
+class DeviceAlreadyExistsException extends MasterkeyLoadingFailedException {
+	public DeviceAlreadyExistsException() {
+		super("Device already registered on this Hub instance");
+	}
+}