#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")); } }