X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/49a75a876cd9b9284722a63f1b3a02d1283630e1..4141cd9660259caa66e2e9af10873e53402b4812:/include/simgrid/Exception.hpp diff --git a/include/simgrid/Exception.hpp b/include/simgrid/Exception.hpp index b414b15f8b..a0786a9df8 100644 --- a/include/simgrid/Exception.hpp +++ b/include/simgrid/Exception.hpp @@ -144,6 +144,16 @@ public: } }; +/** Exception raised when a storage fails */ +class StorageFailureException : public xbt_ex { +public: + StorageFailureException(simgrid::xbt::ThrowPoint throwpoint, std::string message) + : xbt_ex(std::move(throwpoint), std::move(message)) + { + category = io_error; + } +}; + /** Exception raised when something got canceled before completion */ class CancelException : public xbt_ex { public: