try {
//do something
} catch (const std::exception& e) {
std::cout << e.what(); // information from error printed
}
try {
//do
} catch (...){
//if error do
}
try {
...
}
catch (const std::exception& ex) {
std::cout << ex.what() << "
";
}