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_EXCEPTION_HPP
14 #define MSG_EXCEPTION_HPP
17 #error Exception.hpp requires C++ compilation (use a .cxx suffix)
27 class SIMGRIDX_EXPORT Exception
31 // Default constructor.
35 Exception(const Exception& rException);
37 // This constructor takes the reason of the exception.
38 Exception(const char* reason);
45 // Returns the reason of the exception.
46 const char* toString(void) const;
51 const Exception& operator = (const Exception& rException);
57 // The reason of the exceptions.
67 #endif // !MSG_EXCEPTION_HPP