- cout << "Standard Error: " << e.what() << " has occurred in the SAbundVector class Function SAbundVector. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- exit(1);
- }
- catch(...) {
- cout << "An unknown error has occurred in the SAbundVector class function SAbundVector. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ m->errorOut(e, "SAbundVector", "SAbundVector");
exit(1);
}
}
exit(1);
}
}
@@ -49,11+44,7 @@ SAbundVector::SAbundVector(vector <int> dataVec, int mr, int nb, int ns) {
numSeqs = ns;
}
catch(exception& e) {
numSeqs = ns;
}
catch(exception& e) {
- cout << "Standard Error: " << e.what() << " has occurred in the SAbundVector class Function SAbundVector. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- exit(1);
- }
- catch(...) {
- cout << "An unknown error has occurred in the SAbundVector class function SAbundVector. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ m->errorOut(e, "SAbundVector", "SAbundVector");
exit(1);
}
}
exit(1);
}
}
@@ -69,15+60,13 @@ SAbundVector::SAbundVector(ifstream& f): DataVector(), maxRank(0), numBins(0), n
for(int i=1;i<=hold;i++){
f >> inputData;
for(int i=1;i<=hold;i++){
f >> inputData;
+
set(i, inputData);
}
set(i, inputData);
}
+
}
catch(exception& e) {
}
catch(exception& e) {
- cout << "Standard Error: " << e.what() << " has occurred in the SAbundVector class Function SAbundVector. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- exit(1);
- }
- catch(...) {
- cout << "An unknown error has occurred in the SAbundVector class function SAbundVector. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ m->errorOut(e, "SAbundVector", "SAbundVector");
exit(1);
}
}
exit(1);
}
}
@@ -100,13+89,9 @@ void SAbundVector::set(int sabund, int abundance){
if(sabund > maxRank) { maxRank = sabund; }
}
catch(exception& e) {
if(sabund > maxRank) { maxRank = sabund; }
}
catch(exception& e) {
- cout << "Standard Error: " << e.what() << " has occurred in the SAbundVector class Function set. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ m->errorOut(e, "SAbundVector", "set");
exit(1);
}
exit(1);
}
- catch(...) {
- cout << "An unknown error has occurred in the SAbundVector class function set. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the SAbundVector class Function push_back. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ m->errorOut(e, "SAbundVector", "push_back");
exit(1);
}
exit(1);
}
- catch(...) {
- cout << "An unknown error has occurred in the SAbundVector class function push_back. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the SAbundVector class Function print. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ m->errorOut(e, "SAbundVector", "print");
exit(1);
}
exit(1);
}
- catch(...) {
- cout << "An unknown error has occurred in the SAbundVector class function print. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the SAbundVector class Function getRAbundVector. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the SAbundVector class function getRAbundVector. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
@@ -267,13+246,9 @@ OrderVector SAbundVector::getOrderVector(map<string,int>* hold = NULL){
return ov;
}
catch(exception& e) {
return ov;
}
catch(exception& e) {
- cout << "Standard Error: " << e.what() << " has occurred in the SAbundVector class Function getOrderVector. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the SAbundVector class function getOrderVector. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";