mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-07-07 12:32:57 +00:00
catching all the exceptions
This commit is contained in:
parent
f180de905d
commit
c22005eda1
@ -176,14 +176,14 @@ int main(int argc, char** argv)
|
|||||||
{
|
{
|
||||||
LOG(FATAL) << "Boost exception: " << boost::diagnostic_information(e);
|
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)
|
catch(std::exception const& ex)
|
||||||
{
|
{
|
||||||
LOG(FATAL) << "STD exception: " << ex.what();
|
LOG(FATAL) << "STD exception: " << ex.what();
|
||||||
}
|
}
|
||||||
|
catch(...)
|
||||||
|
{
|
||||||
|
LOG(INFO) << "Unexpected catch";
|
||||||
|
}
|
||||||
// report the elapsed time
|
// report the elapsed time
|
||||||
gettimeofday(&tv, NULL);
|
gettimeofday(&tv, NULL);
|
||||||
long long int end = tv.tv_sec * 1000000 + tv.tv_usec;
|
long long int end = tv.tv_sec * 1000000 + tv.tv_usec;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user