Skip to content

Commit

Permalink
Collapsed multiple exceptions into one
Browse files Browse the repository at this point in the history
  • Loading branch information
basiliskus committed May 9, 2024
1 parent 358fc8b commit d43d1a6
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import gov.hhs.cdc.trustedintermediary.etor.ruleengine.FhirResource;
import gov.hhs.cdc.trustedintermediary.etor.ruleengine.Rule;
import gov.hhs.cdc.trustedintermediary.etor.ruleengine.RuleExecutionException;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
Expand Down Expand Up @@ -65,11 +64,7 @@ private static CustomFhirTransformation createTransformationInstance(
try {
Class<?> clazz = Class.forName(fullClassName);
return (CustomFhirTransformation) clazz.getDeclaredConstructor().newInstance();
} catch (ClassNotFoundException
| InstantiationException
| IllegalAccessException
| NoSuchMethodException
| InvocationTargetException e) {
} catch (Exception e) {
throw new RuntimeException(
"Error creating transformation instance for: " + transformationName, e);
}
Expand Down

0 comments on commit d43d1a6

Please sign in to comment.