X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/16673e04b393c2d8c031d0d77ec318ac2c711f4e..e2f4c322102dab25d663a761157720cbbb11702d:/src/xbt/exception.cpp diff --git a/src/xbt/exception.cpp b/src/xbt/exception.cpp index 4fd03bc71a..82b64eeabf 100644 --- a/src/xbt/exception.cpp +++ b/src/xbt/exception.cpp @@ -65,7 +65,6 @@ const char* xbt_ex_catname(xbt_errcat_t cat) default: return "INVALID ERROR"; } - return "INVALID ERROR"; } namespace simgrid { @@ -146,8 +145,9 @@ static void handler() std::abort(); } - catch (simgrid::kernel::context::Context::StopRequest& e) { - XBT_ERROR("Received a StopRequest at the top-level exception handler. Maybe a Java->C++ call that is not protected " + catch (simgrid::ForcefulKillException const& e) { + XBT_ERROR("Received a ForcefulKillException at the top-level exception handler. Maybe a Java->C++ call that is not " + "protected " "in a try/catch?"); show_backtrace(bt); } @@ -172,15 +172,6 @@ void install_exception_handler() previous_terminate_handler = std::set_terminate(handler); }); } -// deprecated -void logException(e_xbt_log_priority_t priority, const char* context, std::exception const& exception) -{ - log_exception(priority, context, exception); -} -void installExceptionHandler() -{ - install_exception_handler(); -} } // namespace xbt } // namespace simgrid