Remove unnecessary try-catch
@@ -447,8 +447,7 @@ public class GraphMavenResolver implements Runnable {
})).values().stream().map(Pair::getFirst).collect(Collectors.toSet());
}
- public void buildDependencyGraph(DSLContext dbContext, String serializedGraphPath) {
- try {
+ public void buildDependencyGraph(DSLContext dbContext, String serializedGraphPath) throws Exception {
var graphOpt = DependencyGraphUtilities.loadDependencyGraph(serializedGraphPath);
if (graphOpt.isEmpty()) {
dependencyGraph = DependencyGraphUtilities.buildDependencyGraphFromScratch(dbContext, serializedGraphPath);
@@ -456,9 +455,6 @@ public class GraphMavenResolver implements Runnable {
dependencyGraph = graphOpt.get();
}
dependentGraph = DependencyGraphUtilities.invertDependencyGraph(dependencyGraph);
- } catch (Exception e) {
- logger.error("Could not build the dependency graph", e);
- }
}
private long getCreatedAt(String groupId, String artifactId, String version, DSLContext context) {
