#include <xbt/backtrace.hpp>
#include <xbt/ex.h>
+#include <atomic>
#include <stdexcept>
#include <string>
/** 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 */