4 * Copyright 2006,2007 Martin Quinson, Malek Cherier
\r
5 * All right reserved.
\r
7 * This program is free software; you can redistribute
\r
8 * it and/or modify it under the terms of the license
\r
9 *(GNU LGPL) which comes with this package.
\r
13 #ifndef MSG_EXCEPTION_HPP
\r
14 #define MSG_EXCEPTION_HPP
\r
25 // Default constructor.
\r
28 // Copy constructor.
\r
29 Exception(const Exception& rException);
\r
31 // This constructor takes the reason of the exception.
\r
32 Exception(const char* reason);
\r
35 virtual ~Exception();
\r
39 // Returns the reason of the exception.
\r
40 const char* toString(void) const;
\r
45 const Exception& operator = (const Exception& rException);
\r
51 // The reason of the exceptions.
\r
58 }// namespace SimGrid
\r
61 #endif // !MSG_EXCEPTION_HPP
\r