blob: 198117f97fff46d6934a3a271d1aed4e54a6563f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "runner.hpp"
#include "logging.hpp"
#include "exception.hpp"
void threads::IRunner::CallAndCatchAll(RunnerFuncT const & f)
{
try
{
f();
}
catch (RootException & e)
{
LOG(LERROR, ("Exception caught by runner", e.Msg()));
}
catch (::std::exception & e)
{
LOG(LERROR, ("Std exception caught by runner", e.what()));
}
catch (...)
{
LOG(LERROR, ("Unknown exception caught by runner"));
}
}
|