+++ /dev/null
-#include <Exception.hpp>\r
-\r
-namespace SimGrid\r
-{\r
- namespace Msg\r
- {\r
- \r
- Exception::Exception()\r
- {\r
- reason = "Unknown reason";\r
- }\r
- \r
- \r
- Exception::Exception(const Exception& rException)\r
- {\r
- this->reason = rException.toString();\r
- }\r
- \r
- \r
- Exception::Exception(const char* reason)\r
- {\r
- this->reason = reason;\r
- }\r
- \r
- \r
- Exception::~Exception()\r
- {\r
- // NOTHING TODO\r
- }\r
- \r
- const char* Exception::toString(void) const\r
- {\r
- return this->reason; \r
- }\r
- \r
- \r
- const Exception& Exception::operator = (const Exception& rException)\r
- {\r
- this->reason = rException.toString();\r
- return *this;\r
- }\r
- \r
- } // namespace Msg \r
-\r
-}// namespace SimGrid\r
-\r
-\r
-\r