A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sonar
[simgrid.git]
/
src
/
kernel
/
context
/
Context.hpp
diff --git
a/src/kernel/context/Context.hpp
b/src/kernel/context/Context.hpp
index
674f02d
..
082677c
100644
(file)
--- a/
src/kernel/context/Context.hpp
+++ b/
src/kernel/context/Context.hpp
@@
-58,9
+58,15
@@
public:
class StopRequest {
/** @brief Exception launched to kill a process, in order to properly unwind its stack and release RAII stuff
*
class StopRequest {
/** @brief Exception launched to kill a process, in order to properly unwind its stack and release RAII stuff
*
- * Nope, Sonar, this should not inherit of std::exception.
+ * Nope, Sonar, this should not inherit of std::exception
nor of simgrid::Exception
.
* Otherwise, users may accidentally catch it with a try {} catch (std::exception)
*/
* Otherwise, users may accidentally catch it with a try {} catch (std::exception)
*/
+ public:
+ StopRequest() = default;
+ explicit StopRequest(std::string msg) : msg_(msg) {}
+
+ private:
+ std::string msg_;
};
bool iwannadie;
};
bool iwannadie;