Skip to content

Commit

Permalink
Refactor exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
freimair committed Aug 9, 2019
1 parent a02c2ef commit bc73844
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,8 @@ void report() {
try {
report.put(OnionParser.prettyPrint(host) + ".relativeNumberOfMessages." + messageType,
String.valueOf(((Counter) count).value() - referenceValues.get(messageType).value()));
} catch (MalformedURLException ignore) {
log.error("we should never got here");
} catch (NullPointerException e) {
// we got no reference-Value if we got here. strange.
} catch (MalformedURLException | NullPointerException ignore) {
log.error("we should never have gotten here", ignore);
}
});
try {
Expand Down

0 comments on commit bc73844

Please sign in to comment.