X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=rarefact.cpp;fp=rarefact.cpp;h=f1b43fc26553cd739d32d2baeff36bc457df006a;hb=510b1cfc25cd79391d6973ca20c5ec25fb1bb3b2;hp=67662496618d427c12363ea5ec120f21578e3f12;hpb=37e0d78135e32b5aa58ca163f4d416716c78b67f;p=mothur.git diff --git a/rarefact.cpp b/rarefact.cpp index 6766249..f1b43fc 100644 --- a/rarefact.cpp +++ b/rarefact.cpp @@ -63,11 +63,7 @@ void Rarefact::getCurve(int increment = 1, int nIters = 1000){ delete rcd; } catch(exception& e) { - cout << "Standard Error: " << e.what() << " has occurred in the Rarefact class Function getCurve. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } - catch(...) { - cout << "An unknown error has occurred in the Rarefact class function getCurve. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; + errorOut(e, "Rarefact", "getCurve"); exit(1); } } @@ -128,14 +124,9 @@ try { delete rcd; } catch(exception& e) { - cout << "Standard Error: " << e.what() << " has occurred in the Rarefact class Function getSharedCurve. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } - catch(...) { - cout << "An unknown error has occurred in the Rarefact class function getSharedCurve. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; + errorOut(e, "Rarefact", "getSharedCurve"); exit(1); } - } /**************************************************************************************/ @@ -147,12 +138,8 @@ void Rarefact::mergeVectors(SharedRAbundVector* shared1, SharedRAbundVector* sha } } catch(exception& e) { - cout << "Standard Error: " << e.what() << " has occurred in the Rarefact class Function mergeVectors. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; + errorOut(e, "Rarefact", "mergeVectors"); exit(1); } - catch(...) { - cout << "An unknown error has occurred in the Rarefact class function mergeVectors. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } }