Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge pull request #299 from mpoquet/example/s4u-barrier
[simgrid.git] / include / simgrid / Exception.hpp
index 1f3d2b3..9ea27ab 100644 (file)
@@ -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 */