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_LOGICEXCEPTION_HPP
14 #define MSG_LOGICEXCEPTION_HPP
17 #error LogicException.hpp requires C++ compilation (use a .cxx suffix)
20 #include <Exception.hpp>
27 class SIMGRIDX_EXPORT LogicException : public Exception
31 // Default constructor.
35 LogicException(const LogicException& rLogicException);
37 // This constructor takes the detail of the logic exception.
38 LogicException(const char* detail);
41 virtual ~LogicException();
45 // Returns the reason of the exception :
46 // the message "Logic exception `detail'"
47 const char* toString(void) const;
52 const LogicException& operator = (const LogicException& rLogicException);
58 // A buffer used to build the message returned by the methode toString().
68 #endif // !MSG_INVALIDARGUMENTEXCEPTION_HPP