+++ /dev/null
-/*\r
- * Exception.cxx\r
- *\r
- * Copyright 2006,2007 Martin Quinson, Malek Cherier \r
- * All right reserved. \r
- *\r
- * This program is free software; you can redistribute \r
- * it and/or modify it under the terms of the license \r
- *(GNU LGPL) which comes with this package. \r
- *\r
- */\r
- \r
- /* Exception member functions implementation.\r
- * The base class of all the types of exceptions of SimGrid::Msg.\r
- */ \r
-\r
-#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