Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
convert all xbt_ex(timeout_error) throwing locations to simgrid::TimeoutError
[simgrid.git] / include / simgrid / Exception.hpp
index e09cde0..9d398b4 100644 (file)
@@ -110,6 +110,11 @@ namespace simgrid {
 
 /** Exception raised when a timeout elapsed */
 class TimeoutError : public xbt_ex {
+public:
+  TimeoutError(simgrid::xbt::ThrowPoint throwpoint, std::string message) : xbt_ex(throwpoint, message)
+  {
+    category = timeout_error;
+  }
 };
 
 /** Exception raised when an host fails */