Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revise to fool cppcheck.
[simgrid.git] / src / xbt / exception.cpp
index eb4878a..82b64ee 100644 (file)
@@ -145,8 +145,9 @@ static void handler()
     std::abort();
   }
 
-  catch (simgrid::kernel::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);
   }
@@ -171,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