Skip to content

Commit

Permalink
Improve exception handling when loading classes
Browse files Browse the repository at this point in the history
  • Loading branch information
seime authored Jan 6, 2025
1 parent 70ff841 commit afd403d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ private void createRuleInstances() {
cls.getDeclaredConstructor().newInstance();
logger.info("Instantiated JRuleItems class");
} catch (ClassNotFoundException | IllegalAccessException | NoSuchMethodException | InstantiationException
| InvocationTargetException e) {
| InvocationTargetException | Error e) {
logger.error("Could not instantiate JRuleItems file", e);
}

Expand All @@ -292,7 +292,7 @@ private void createRuleInstances() {
cls.getDeclaredConstructor().newInstance();
logger.info("Instantiated JRuleThings class");
} catch (ClassNotFoundException | IllegalAccessException | NoSuchMethodException | InstantiationException
| InvocationTargetException e) {
| InvocationTargetException | Error e) {
logger.error("Could not instantiate JRuleThings file", e);
}

Expand All @@ -302,7 +302,7 @@ private void createRuleInstances() {
cls.getDeclaredConstructor().newInstance();
logger.info("Instantiated JRuleActions class");
} catch (ClassNotFoundException | IllegalAccessException | NoSuchMethodException | InstantiationException
| InvocationTargetException e) {
| InvocationTargetException | Error e) {
logger.error("Could not instantiate JRuleActions file", e);
}

Expand Down

0 comments on commit afd403d

Please sign in to comment.