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); }