Skip to content

Commit

Permalink
return exception, ikke throw
Browse files Browse the repository at this point in the history
  • Loading branch information
janolaveide committed Jun 18, 2021
1 parent e7927c2 commit c421f8f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ private <T> T handle(RuntimeException e, Class<? extends RuntimeException>... tr

private RuntimeException translate(RuntimeException e) {
try {
throw invokeConstructor(translatedException, "F-999999",
return invokeConstructor(translatedException, "F-999999",
"Oversatte exception " + e.getClass().getName() + " til " + translatedException.getClass().getName(), e);
} catch (VLException v) {
throw v;
return v;
} catch (Exception e1) {
throw new IllegalArgumentException(e1);
return new IllegalArgumentException(e1);
}
}

Expand Down

0 comments on commit c421f8f

Please sign in to comment.