XBT_LOG_NEW_SUBCATEGORY(comm, simu, "Messages from asynchronous pipes");
XBT_LOG_NEW_SUBCATEGORY(proc, simu, "Messages from base process class");
XBT_LOG_NEW_SUBCATEGORY(loba, simu, "Messages from load-balancer");
+XBT_LOG_NEW_SUBCATEGORY(thrd, simu, "Messages from thread wrapper class");
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(main);
delete proc;
}
- catch (std::invalid_argument& e) {
+ catch (const std::invalid_argument& e) {
THROW1(arg_error, 0, "%s", e.what());
}
+ catch (const std::exception& e) {
+ THROW1(0, 0, "%s", e.what());
+ }
return result;
}