X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fa5bcda96d92a6008bf7fb9d3c52c3587f128c7c..dd0b1cc786a3c1de8f768defdf419d74028a141a:/include/simgrid/Exception.hpp diff --git a/include/simgrid/Exception.hpp b/include/simgrid/Exception.hpp index 454e593f0d..13cbc85f23 100644 --- a/include/simgrid/Exception.hpp +++ b/include/simgrid/Exception.hpp @@ -73,22 +73,6 @@ private: xbt::ThrowPoint throwpoint_; }; -/** Exception raised when a timeout elapsed */ -class timeout_error : public simgrid::Exception { -}; - -/** Exception raised when an host fails */ -class host_failure : public simgrid::Exception { -}; - -/** Exception raised when a communication fails because of the network */ -class network_failure : public simgrid::Exception { -}; - -/** Exception raised when something got canceled before completion */ -class canceled_error : public simgrid::Exception { -}; - } // namespace simgrid /** A legacy exception @@ -122,4 +106,23 @@ public: int value = 0; }; +namespace simgrid { + +/** Exception raised when a timeout elapsed */ +class TimeoutError : public xbt_ex { +}; + +/** Exception raised when an host fails */ +class HostFailureException : public xbt_ex { +}; + +/** Exception raised when a communication fails because of the network */ +class NetworkFailureException : public xbt_ex { +}; + +/** Exception raised when something got canceled before completion */ +class CancelException : public xbt_ex { +}; +} // namespace simgrid + #endif