Skip to content

Commit

Permalink
JDO-823: Fix more sonarcloud issues of type Code Smells - Generic exc…
Browse files Browse the repository at this point in the history
…eptions should never be thrown
  • Loading branch information
mboapache committed Feb 23, 2023
1 parent fc91403 commit f5372b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/main/java/javax/jdo/JDOHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -1727,7 +1727,7 @@ private static Object invoke(
} else if (cause instanceof InvocationTargetException) {
throw (InvocationTargetException) cause;
} else {
throw new RuntimeException(cause);
throw new JDOFatalInternalException(MSG.msg("EXC_GetPMFUnexpectedException"), cause);
}
}
}
Expand Down

0 comments on commit f5372b7

Please sign in to comment.