Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
convert options to sphinx
[simgrid.git] / include / simgrid / Exception.hpp
index 7a2ba1e..9ea27ab 100644 (file)
@@ -14,6 +14,7 @@
 #include <xbt/backtrace.hpp>
 #include <xbt/ex.h>
 
+#include <atomic>
 #include <stdexcept>
 #include <string>
 
@@ -120,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 */