Skip to content

Commit

Permalink
Rename HsDescUploadFailed to HsDescUploadFailedException
Browse files Browse the repository at this point in the history
  • Loading branch information
alvasw committed Aug 2, 2023
1 parent 62186b0 commit bf1433b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit bf1433b

Please sign in to comment.