Skip to content

Commit

Permalink
Added 'smarter' exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
szarnyasg committed Jul 27, 2016
1 parent 2dab84e commit 7944873
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,15 @@ public ModelAnalyzer(final String modelName, final int sampleSize) {

public void run() throws Exception {
System.out.println("Calculating metrics for: " + modelName);
initModel();
initNetwork();
initFields();
calculateMetrics();
saveMetrics();
try {
initModel();
initNetwork();
initFields();
calculateMetrics();
saveMetrics();
} catch (Exception e) {
throw e;
}
}

protected void initFields() {
Expand Down

0 comments on commit 7944873

Please sign in to comment.