Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add support for CancelException
[simgrid.git] / include / simgrid / Exception.hpp
index db16dd9..b414b15 100644 (file)
@@ -146,6 +146,12 @@ public:
 
 /** Exception raised when something got canceled before completion */
 class CancelException : public xbt_ex {
+public:
+  CancelException(simgrid::xbt::ThrowPoint throwpoint, std::string message)
+      : xbt_ex(std::move(throwpoint), std::move(message))
+  {
+    category = cancel_error;
+  }
 };
 
 } // namespace simgrid