Skip to content

Commit

Permalink
Rename CouldNotWaitForTorShutdown to CouldNotWaitForTorShutdownException
Browse files Browse the repository at this point in the history
  • Loading branch information
alvasw committed Aug 2, 2023
1 parent 49c4368 commit b31d465
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

package bisq.tor.process;

public class CouldNotWaitForTorShutdown extends RuntimeException {
public CouldNotWaitForTorShutdown(String message) {
public class CouldNotWaitForTorShutdownException extends RuntimeException {
public CouldNotWaitForTorShutdownException(String message) {
super(message);
}

public CouldNotWaitForTorShutdown(Throwable cause) {
public CouldNotWaitForTorShutdownException(Throwable cause) {
super(cause);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ public void waitUntilExited() {
try {
boolean isSuccess = process.waitFor(2, TimeUnit.MINUTES);
if (!isSuccess) {
throw new CouldNotWaitForTorShutdown("Tor still running after 2 minutes timeout.");
throw new CouldNotWaitForTorShutdownException("Tor still running after 2 minutes timeout.");
}
} catch (InterruptedException e) {
throw new CouldNotWaitForTorShutdown(e);
throw new CouldNotWaitForTorShutdownException(e);
}
});
}
Expand Down

0 comments on commit b31d465

Please sign in to comment.