Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A string utility class and a new Exception (used to throw out of band exception)
[simgrid.git] / src / cxx / InvalidArgumentException.hpp
index e81fdd4..fc4b201 100644 (file)
 #ifndef MSG_INVALIDARGUMENTEXCEPTION_HPP\r
 #define MSG_INVALIDARGUMENTEXCEPTION_HPP\r
 \r
-#include "Exception.hpp"\r
+#ifndef __cplusplus\r
+       #error InvalidArgumentException.hpp requires C++ compilation (use a .cxx suffix)\r
+#endif\r
+\r
+#include <Exception.hpp>\r
 \r
 namespace SimGrid\r
 {\r
        namespace Msg\r
        {\r
                \r
-               class InvalidArgumentException : public Exception\r
+               class SIMGRIDX_EXPORT InvalidArgumentException : public Exception\r
                {\r
                        public:\r
                        \r
@@ -62,3 +66,4 @@ namespace SimGrid
 \r
 \r
 #endif // !MSG_INVALIDARGUMENTEXCEPTION_HPP\r
+\r