Skip to content

Commit

Permalink
Merge pull request #8 from Reva-B98/main_Vaibhav
Browse files Browse the repository at this point in the history
Issue #4 is solved by using a more specific exception, such as Unsupp…
  • Loading branch information
vaibhav-invictus authored Feb 15, 2024
2 parents 5e52172 + 003e56e commit d50e875
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ private void onUpgrade() {
switch (i) {
case 1 -> upgradeFrom0to1();
case 2 -> upgradeFrom1to2();
default -> throw new RuntimeException("Not implemented: upgrade to " + version);
default -> throw new UnsupportedOperationException("Upgrade to version " + version + " not implemented");

}
}
}
Expand Down

0 comments on commit d50e875

Please sign in to comment.