]> git.donarmstrong.com Git - mothur.git/blobdiff - slibshuff.cpp
pat's edits from 1/26/2010
[mothur.git] / slibshuff.cpp
index a9710ded9303b2f93373216bf2d22ba3c81c527c..1f2d3dfea52fade8645c2afd2eebf239e8fa7231 100644 (file)
@@ -24,7 +24,6 @@ float SLibshuff::evaluatePair(int i, int j){
 vector<vector<double> > SLibshuff::evaluateAll(){
        try{
                savedMins.resize(numGroups);
-               
                vector<vector<double> > dCXYValues(numGroups);
 
                for(int i=0;i<numGroups;i++){
@@ -45,14 +44,9 @@ vector<vector<double> > SLibshuff::evaluateAll(){
                return dCXYValues;
        }
        catch(exception& e) {
-               cout << "Standard Error: " << e.what() << " has occurred in the SLibshuff class Function evaluateAll. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+               errorOut(e, "SLibshuff", "evaluateAll");
                exit(1);
        }
-       catch(...) {
-               cout << "An unknown error has occurred in the SLibshuff class function evaluateAll. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
-               exit(1);
-       }       
-       
 }
 
 /***********************************************************************/
@@ -103,14 +97,9 @@ double SLibshuff::sCalculate(int x, int y){
                return sum;
        }
        catch(exception& e) {
-               cout << "Standard Error: " << e.what() << " has occurred in the SLibshuff class Function sCalculate. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+               errorOut(e, "SLibshuff", "sCalculate");
                exit(1);
        }
-       catch(...) {
-               cout << "An unknown error has occurred in the SLibshuff class function sCalculate. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
-               exit(1);
-       }       
-       
 }
 
 /***********************************************************************/