Skip to content

Commit

Permalink
Changed exception to runtime exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Smith committed Mar 9, 2016
1 parent 269fe9c commit 0792239
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public void fitData(){
} catch(Exception exc){
printMatrix();
exc.printStackTrace();
throw exc;
throw new RuntimeException(exc);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public void fitData(){
System.out.println("Broke after " + i + " iterations");
printMatrix();
//printMatrix();
throw exc;
throw new RuntimeException(exc);
}

nerror = calculateErrors();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public void fitData(){
if(changes< MIN_CHANGE)
break;
} catch(Exception exc){
throw exc;
throw new RuntimeException(exc);
}
}
if(i==MAX_ITERATIONS){
Expand Down

0 comments on commit 0792239

Please sign in to comment.