X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/901d01dc6a68c6d3405bf6f6b98d0ac3d104fcf8..fa536644b403843dac2ebb3ec2ced19fc541d346:/include/simgrid/Exception.hpp diff --git a/include/simgrid/Exception.hpp b/include/simgrid/Exception.hpp index 1f3d2b363d..9ea27ab704 100644 --- a/include/simgrid/Exception.hpp +++ b/include/simgrid/Exception.hpp @@ -121,6 +121,11 @@ public: /** Exception raised when a communication fails because of the network */ class NetworkFailureException : public xbt_ex { +public: + NetworkFailureException(simgrid::xbt::ThrowPoint throwpoint, std::string message) : xbt_ex(throwpoint, message) + { + category = network_error; + } }; /** Exception raised when something got canceled before completion */