void (TransferEvent event) { if (myIndicator.isCanceled()) { myIndicator.info("Canceling..."); return; // Don't throw exception here. } myIndicator.warn("Failed to download " + formatResourceName(event)); }