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_LOGICEXCEPTION_HPP
\r
14 #define MSG_LOGICEXCEPTION_HPP
\r
16 #include "Exception.hpp"
\r
23 class LogicException : public Exception
\r
27 // Default constructor.
\r
30 // Copy constructor.
\r
31 LogicException(const LogicException& rLogicException);
\r
33 // This constructor takes the detail of the logic exception.
\r
34 LogicException(const char* detail);
\r
37 virtual ~LogicException();
\r
41 // Returns the reason of the exception :
\r
42 // the message "Logic exception `detail'"
\r
43 const char* toString(void) const;
\r
48 const LogicException& operator = (const LogicException& rLogicException);
\r
54 // A buffer used to build the message returned by the methode toString().
\r
61 }// namespace SimGrid
\r
64 #endif // !MSG_INVALIDARGUMENTEXCEPTION_HPP
\r