Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove a crude hack where first call to surf_solve() finalize the initialization...
[simgrid.git] / src / cxx / MsgException.hpp
1 #ifndef MSG_EXCEPTION_HPP\r
2 #define MSG_EXCEPTION_HPP\r
3 \r
4 namespace msg\r
5 {\r
6         class MsgException\r
7         {\r
8         public:\r
9                 // Default constructor.\r
10                 MsgException();\r
11                 \r
12                 // This constructor takes as parameter the message of the \r
13                 // MsgException object.\r
14                 MsgException(const char* msg);\r
15                 \r
16                 // Copy constructor.\r
17                 MsgException(const MsgException& rMsgException);\r
18                 \r
19                 // Destructor.\r
20                 virtual ~MsgException();\r
21                 \r
22                 \r
23         // Operations.\r
24         \r
25         // Returns the message of the exception.\r
26         const char* what(void) const;\r
27         \r
28         \r
29         // Getters/setters.\r
30         \r
31         // Operators.\r
32                 \r
33         private:\r
34                 \r
35                 // Attributes.\r
36                 \r
37                 // The message of the exception.\r
38                 const char* msg;\r
39                 \r
40         };\r
41 }\r
42 \r
43 #endif // !MSG_EXCEPTION_HPP