From: Arnaud Giersch Date: Fri, 29 Sep 2017 20:39:56 +0000 (+0200) Subject: Revert "Derive custom exception from std::exception." X-Git-Tag: v3_17~60 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/80e2153f61c596fdbdd3f2142e12f9107dce5052 Revert "Derive custom exception from std::exception." This reverts commit 7198a3162eaae82fa2ec5c612d5ae22e243055d7. Make it impossible for user code to catch a StopRequest with a try {} catch (std::exception). Sonar will be whining but I don't care. --- diff --git a/src/kernel/context/Context.hpp b/src/kernel/context/Context.hpp index 090e7f4876..89b3833e82 100644 --- a/src/kernel/context/Context.hpp +++ b/src/kernel/context/Context.hpp @@ -6,7 +6,6 @@ #ifndef SIMGRID_KERNEL_CONTEXT_CONTEXT_HPP #define SIMGRID_KERNEL_CONTEXT_CONTEXT_HPP -#include #include #include #include @@ -81,7 +80,7 @@ namespace context { void_pfn_smxprocess_t cleanup_func_ = nullptr; smx_actor_t process_ = nullptr; public: - class StopRequest : public std::exception { + class StopRequest { }; bool iwannadie;