X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=heatmapsim.cpp;fp=heatmapsim.cpp;h=ea0130453c9b2a155f2af66c5ffe2d4a1729bc33;hb=510b1cfc25cd79391d6973ca20c5ec25fb1bb3b2;hp=33588e671ac16a36b175dcdfc0291dc25a19e72c;hpb=37e0d78135e32b5aa58ca163f4d416716c78b67f;p=mothur.git diff --git a/heatmapsim.cpp b/heatmapsim.cpp index 33588e6..ea01304 100644 --- a/heatmapsim.cpp +++ b/heatmapsim.cpp @@ -21,17 +21,7 @@ //********************************************************************************************************************** HeatMapSim::HeatMapSim(){ - try { globaldata = GlobalData::getInstance(); - } - catch(exception& e) { - cout << "Standard Error: " << e.what() << " has occurred in the HeatMap class Function HeatMap. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } - catch(...) { - cout << "An unknown error has occurred in the HeatMap class function HeatMap. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } } //********************************************************************************************************************** @@ -107,11 +97,7 @@ void HeatMapSim::getPic(vector lookup, vector } catch(exception& e) { - cout << "Standard Error: " << e.what() << " has occurred in the HeatMapSim class Function getPic. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } - catch(...) { - cout << "An unknown error has occurred in the HeatMapSim class function getPic. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; + errorOut(e, "HeatMapSim", "getPic"); exit(1); } } @@ -148,14 +134,9 @@ void HeatMapSim::printLegend(int y, float maxSim) { } catch(exception& e) { - cout << "Standard Error: " << e.what() << " has occurred in the HeatMapSim class Function printLegend. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; + errorOut(e, "HeatMapSim", "printLegend"); exit(1); } - catch(...) { - cout << "An unknown error has occurred in the HeatMapSim class function printLegend. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } - } //**********************************************************************************************************************