- cout << "Standard Error: " << e.what() << " has occurred in the ThreeColumnFile class Function initFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- exit(1);
- }
- catch(...) {
- cout << "An unknown error has occurred in the ThreeColumnFile class function initFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the ThreeColumnFile class Function output. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- exit(1);
- }
- catch(...) {
- cout << "An unknown error has occurred in the ThreeColumnFile class function output. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
//checks to make sure user was able to rename and remove successfully
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { cout << "Unable to rename necessary files." << endl; }
-
+ if ((renameOk != 0)) {
+ m->mothurOut("Unable to rename " + outName); m->mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
}
catch(exception& e) {
- cout << "Standard Error: " << e.what() << " has occurred in the ThreeColumnFile class Function resetFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ m->errorOut(e, "ThreeColumnFile", "resetFile");
exit(1);
}
exit(1);
}
- catch(...) {
- cout << "An unknown error has occurred in the ThreeColumnFile class function resetFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the ThreeColumnFile class Function initFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- exit(1);
- }
- catch(...) {
- cout << "An unknown error has occurred in the ThreeColumnFile class function initFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the ThreeColumnFile2 class Function output. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- exit(1);
- }
- catch(...) {
- cout << "An unknown error has occurred in the ThreeColumnFile2 class function output. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
//checks to make sure user was able to rename and remove successfully
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { cout << "Unable to rename necessary files." << endl; }
-
+ if ((renameOk != 0)) {
+ m->mothurOut("Unable to rename " + outName); m->mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
}
catch(exception& e) {
- cout << "Standard Error: " << e.what() << " has occurred in the ThreeColumnFile2 class Function resetFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ m->errorOut(e, "ColumnFile", "resetFile");
exit(1);
}
exit(1);
}
- catch(...) {
- cout << "An unknown error has occurred in the ThreeColumnFile2 class function resetFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the SharedThreeColumnFile class Function initFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- exit(1);
- }
- catch(...) {
- cout << "An unknown error has occurred in the SharedThreeColumnFile class function initFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the SharedThreeColumnFile class Function output. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the SharedThreeColumnFile class function output. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
//checks to make sure user was able to rename and remove successfully
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { cout << "Unable to rename necessary files." << endl; }
-
+ if ((renameOk != 0)) {
+ m->mothurOut("Unable to rename " + outName); m->mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
}
catch(exception& e) {
- cout << "Standard Error: " << e.what() << " has occurred in the SharedThreeColumnFile class Function resetFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the SharedThreeColumnFile class function resetFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the OneColumnFile class Function initFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ m->errorOut(e, "OneColumnFile", "initFile");
exit(1);
}
exit(1);
}
- catch(...) {
- cout << "An unknown error has occurred in the OneColumnFile class function initFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the OneColumnFile class Function output. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ m->errorOut(e, "OneColumnFile", "output");
exit(1);
}
exit(1);
}
- catch(...) {
- cout << "An unknown error has occurred in the OneColumnFile class function output. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
//checks to make sure user was able to rename and remove successfully
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { cout << "Unable to rename necessary files." << endl; }
+ if ((renameOk != 0)) {
+ m->mothurOut("Unable to rename " + outName); m->mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
}
catch(exception& e) {
- cout << "Standard Error: " << e.what() << " has occurred in the OneColumnFile class Function resetFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ m->errorOut(e, "OneColumnFile", "resetFile");
exit(1);
}
exit(1);
}
- catch(...) {
- cout << "An unknown error has occurred in the OneColumnFile class function resetFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the OneColumnFile class Function initFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the OneColumnFile class function initFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the OneColumnFile class Function output. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the OneColumnFile class function output. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- //checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { cout << "Unable to rename necessary files." << endl; }
-
+ //renameFile(outName, inName);
+ //checks to make sure user was able to rename and remove successfully
+ if ((renameOk != 0)) {
+ m->mothurOut("Unable to rename " + outName); m->mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
}
catch(exception& e) {
- cout << "Standard Error: " << e.what() << " has occurred in the OneColumnFile class Function resetFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the OneColumnFile class function resetFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";