--- /dev/null
+/*\r
+ * FileNotFoundException.hpp\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
+#ifndef MSG_FILENOTFOUND_HPP\r
+#define MSG_FILENOTFOUND_HPP\r
+\r
+#include <Exception.hp>\r
+\r
+namespace SimGrid\r
+{\r
+ namespace Msg\r
+ {\r
+ \r
+ class FileNotFoundException : public Exception\r
+ {\r
+ public:\r
+ \r
+ // Default constructor.\r
+ FileNotFoundException();\r
+ \r
+ // Copy constructor.\r
+ FileNotFoundException(const FileNotFoundException& rFileNotFoundException);\r
+ \r
+ // This constructor takes the name of the file.\r
+ FileNotFoundException(const char* file);\r
+ \r
+ // Destructor.\r
+ virtual ~FileNotFoundException();\r
+ \r
+ // Operations.\r
+ \r
+ // Returns the reason of the exception :\r
+ // the message "File not found : `object name'"\r
+ const char* toString(void) const;\r
+ \r
+ // Operators.\r
+ \r
+ // Assignement.\r
+ const FileNotFoundException& operator = (const FileNotFoundException& rFileNotFoundException);\r
+ \r
+ private :\r
+ \r
+ // Attributes.\r
+ \r
+ // A buffer used to build the message returned by the methode toString().\r
+ char* reason;\r
+ };\r
+ \r
+ \r
+ } // namespace Msg \r
+\r
+}// namespace SimGrid\r
+\r
+\r
+#endif // !MSG_MSGEXCEPTION_HPP\r