Skip to content

Commit

Permalink
Add comment to remind future self of adding new exception types to sw…
Browse files Browse the repository at this point in the history
…itch-case
  • Loading branch information
vanitasvitae committed Apr 18, 2023
1 parent 4a7c2b7 commit bb2b4e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions external-sop/src/main/java/sop/external/ExternalSOP.java
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ private static void mapExitCodeOrException(@Nonnull Process process) throws Inte
exitCode + "):\n" + errorMessage);

default:
// Did you forget to add a case for a new exception type?
throw new RuntimeException("External SOP backend reported unknown exit code (" +
exitCode + "):\n" + errorMessage);
}
Expand Down

0 comments on commit bb2b4e0

Please sign in to comment.