Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Define and throw simgrid::VmFailureException.
[simgrid.git] / include / simgrid / Exception.hpp
index 8c1e0f7..39002a8 100644 (file)
@@ -169,6 +169,16 @@ public:
   }
 };
 
+/** Exception raised when a VM fails */
+class VmFailureException : public xbt_ex {
+public:
+  VmFailureException(simgrid::xbt::ThrowPoint&& throwpoint, std::string&& message)
+      : xbt_ex(std::move(throwpoint), std::move(message))
+  {
+    category = vm_error;
+  }
+};
+
 /** Exception raised when something got canceled before completion */
 class CancelException : public xbt_ex {
 public: