catching all the exceptions

This commit is contained in:
Carles Fernandez 2015-05-23 10:04:48 +02:00
parent f180de905d
commit c22005eda1
1 changed files with 4 additions and 4 deletions

View File

@ -176,14 +176,14 @@ int main(int argc, char** argv)
{
LOG(FATAL) << "Boost exception: " << boost::diagnostic_information(e);
}
catch( boost::lock_error & le )
{
LOG(FATAL) << "Lock error exception: " << boost::diagnostic_information(le);
}
catch(std::exception const& ex)
{
LOG(FATAL) << "STD exception: " << ex.what();
}
catch(...)
{
LOG(INFO) << "Unexpected catch";
}
// report the elapsed time
gettimeofday(&tv, NULL);
long long int end = tv.tv_sec * 1000000 + tv.tv_usec;