4 * Copyright 2006,2007 Martin Quinson, Malek Cherier
7 * This program is free software; you can redistribute
8 * it and/or modify it under the terms of the license
9 *(GNU LGPL) which comes with this package.
13 #ifndef MSG_MSGEXCEPTION_HPP
14 #define MSG_MSGEXCEPTION_HPP
16 #include <Exception.hpp>
23 class SIMGRIDX_EXPORT MsgException : public Exception
27 // Default constructor.
31 MsgException(const MsgException& rMsgException);
33 // This constructor takes the reason of the exception.
34 MsgException(const char* reason);
37 virtual ~MsgException();
41 // Returns the reason of the exception :
42 // the message "Internal exception `reason'"
43 const char* toString(void) const;
48 const MsgException& operator = (const MsgException& rMsgException);
54 // A buffer used to build the message returned by the methode toString().
64 #endif // !MSG_MSGEXCEPTION_HPP