Commit 83198118 authored by Davis King's avatar Davis King

Simplified example programs slightly

parent d00864cf
...@@ -237,10 +237,6 @@ int main(int argc, char** argv) ...@@ -237,10 +237,6 @@ int main(int argc, char** argv)
// the default message. // the default message.
cout << e.what() << endl; cout << e.what() << endl;
} }
catch (...)
{
cout << "Some error occurred" << endl;
}
} }
......
...@@ -289,10 +289,6 @@ int main() ...@@ -289,10 +289,6 @@ int main()
cout << "\nexception thrown!" << endl; cout << "\nexception thrown!" << endl;
cout << e.what() << endl; cout << e.what() << endl;
} }
catch (...)
{
cout << "Some error occurred" << endl;
}
} }
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
......
...@@ -251,10 +251,6 @@ int main() ...@@ -251,10 +251,6 @@ int main()
cout << "\nexception thrown!" << endl; cout << "\nexception thrown!" << endl;
cout << e.what() << endl; cout << e.what() << endl;
} }
catch (...)
{
cout << "Some error occurred" << endl;
}
} }
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
......
...@@ -61,9 +61,5 @@ int main() ...@@ -61,9 +61,5 @@ int main()
{ {
cout << e.what() << endl; cout << e.what() << endl;
} }
catch (...)
{
cout << "Some error occurred" << endl;
}
} }
...@@ -88,10 +88,6 @@ int main() ...@@ -88,10 +88,6 @@ int main()
{ {
cout << e.what() << endl; cout << e.what() << endl;
} }
catch (...)
{
cout << "Some error occurred" << endl;
}
} }
...@@ -296,12 +296,6 @@ int main(int argc, char** argv) ...@@ -296,12 +296,6 @@ int main(int argc, char** argv)
cout << "\nTry the -h option for more information." << endl; cout << "\nTry the -h option for more information." << endl;
return EXIT_FAILURE; return EXIT_FAILURE;
} }
catch (...)
{
cout << "Some error occurred" << endl;
cout << "\nTry the -h option for more information." << endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment