From bf1433bfaf07ca245074890acbfebcd78b3f5d35 Mon Sep 17 00:00:00 2001 From: Alva Swanson Date: Sun, 30 Jul 2023 18:24:22 +0200 Subject: [PATCH] Rename HsDescUploadFailed to HsDescUploadFailedException --- ...scUploadFailed.java => HsDescUploadFailedException.java} | 6 +++--- .../main/java/bisq/tor/controller/NativeTorController.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) rename network/tor/src/main/java/bisq/tor/controller/{HsDescUploadFailed.java => HsDescUploadFailedException.java} (80%) diff --git a/network/tor/src/main/java/bisq/tor/controller/HsDescUploadFailed.java b/network/tor/src/main/java/bisq/tor/controller/HsDescUploadFailedException.java similarity index 80% rename from network/tor/src/main/java/bisq/tor/controller/HsDescUploadFailed.java rename to network/tor/src/main/java/bisq/tor/controller/HsDescUploadFailedException.java index 270b2ec235..b6d798c010 100644 --- a/network/tor/src/main/java/bisq/tor/controller/HsDescUploadFailed.java +++ b/network/tor/src/main/java/bisq/tor/controller/HsDescUploadFailedException.java @@ -17,12 +17,12 @@ package bisq.tor.controller; -public class HsDescUploadFailed extends RuntimeException { - public HsDescUploadFailed(String message) { +public class HsDescUploadFailedException extends RuntimeException { + public HsDescUploadFailedException(String message) { super(message); } - public HsDescUploadFailed(Throwable cause) { + public HsDescUploadFailedException(Throwable cause) { super(cause); } } 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 d0f017b80b..673981cb72 100644 --- a/network/tor/src/main/java/bisq/tor/controller/NativeTorController.java +++ b/network/tor/src/main/java/bisq/tor/controller/NativeTorController.java @@ -83,10 +83,10 @@ public TorControlConnection.CreateHiddenServiceResult createHiddenService( if (isSuccess) { removeHsDescUploadedEventListener(); } else { - throw new HsDescUploadFailed("HS_DESC upload timeout (2 minutes) triggered."); + throw new HsDescUploadFailedException("HS_DESC upload timeout (2 minutes) triggered."); } } catch (InterruptedException e) { - throw new HsDescUploadFailed(e); + throw new HsDescUploadFailedException(e); } return result; @@ -136,7 +136,7 @@ public void onHsDescUploaded(HsDescUploadedEvent uploadedEvent) { isHsDescUploadedCountdownLatch.countDown(); } } catch (TimeoutException e) { - throw new HsDescUploadFailed("Unknown hidden service descriptor uploaded"); + throw new HsDescUploadFailedException("Unknown hidden service descriptor uploaded"); } catch (ExecutionException | InterruptedException e) { throw new IllegalStateException(e); }