From ccb653a1443dfb37b75bbae13ec4ee8a02ce8237 Mon Sep 17 00:00:00 2001 From: Alva Swanson Date: Sun, 30 Jul 2023 18:43:27 +0200 Subject: [PATCH] TorController: Move exceptions to exceptions package --- .../src/main/java/bisq/tor/controller/NativeTorController.java | 2 ++ .../{ => exceptions}/HsDescUploadFailedException.java | 2 +- .../{ => exceptions}/TorBootstrapFailedException.java | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) rename network/tor/src/main/java/bisq/tor/controller/{ => exceptions}/HsDescUploadFailedException.java (95%) rename network/tor/src/main/java/bisq/tor/controller/{ => exceptions}/TorBootstrapFailedException.java (95%) diff --git a/network/tor/src/main/java/bisq/tor/controller/NativeTorController.java b/network/tor/src/main/java/bisq/tor/controller/NativeTorController.java index d15e22b65c..45089288a5 100644 --- a/network/tor/src/main/java/bisq/tor/controller/NativeTorController.java +++ b/network/tor/src/main/java/bisq/tor/controller/NativeTorController.java @@ -23,6 +23,8 @@ import bisq.tor.controller.events.events.HsDescUploadedEvent; import bisq.tor.controller.events.listener.BootstrapEventListener; import bisq.tor.controller.events.listener.HsDescUploadedEventListener; +import bisq.tor.controller.exceptions.HsDescUploadFailedException; +import bisq.tor.controller.exceptions.TorBootstrapFailedException; import bisq.tor.process.NativeTorProcess; import lombok.extern.slf4j.Slf4j; import net.freehaven.tor.control.PasswordDigest; diff --git a/network/tor/src/main/java/bisq/tor/controller/HsDescUploadFailedException.java b/network/tor/src/main/java/bisq/tor/controller/exceptions/HsDescUploadFailedException.java similarity index 95% rename from network/tor/src/main/java/bisq/tor/controller/HsDescUploadFailedException.java rename to network/tor/src/main/java/bisq/tor/controller/exceptions/HsDescUploadFailedException.java index b6d798c010..1ef38da2e7 100644 --- a/network/tor/src/main/java/bisq/tor/controller/HsDescUploadFailedException.java +++ b/network/tor/src/main/java/bisq/tor/controller/exceptions/HsDescUploadFailedException.java @@ -15,7 +15,7 @@ * along with Bisq. If not, see . */ -package bisq.tor.controller; +package bisq.tor.controller.exceptions; public class HsDescUploadFailedException extends RuntimeException { public HsDescUploadFailedException(String message) { diff --git a/network/tor/src/main/java/bisq/tor/controller/TorBootstrapFailedException.java b/network/tor/src/main/java/bisq/tor/controller/exceptions/TorBootstrapFailedException.java similarity index 95% rename from network/tor/src/main/java/bisq/tor/controller/TorBootstrapFailedException.java rename to network/tor/src/main/java/bisq/tor/controller/exceptions/TorBootstrapFailedException.java index d493a180df..c3fdbe7b06 100644 --- a/network/tor/src/main/java/bisq/tor/controller/TorBootstrapFailedException.java +++ b/network/tor/src/main/java/bisq/tor/controller/exceptions/TorBootstrapFailedException.java @@ -15,7 +15,7 @@ * along with Bisq. If not, see . */ -package bisq.tor.controller; +package bisq.tor.controller.exceptions; public class TorBootstrapFailedException extends RuntimeException { public TorBootstrapFailedException(String message) {