X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/846b7de4a868bf8dc1270f76a01c33738576694d..5d038603f775914afc8c6f35eff53f3682802f5b:/src/cxx/LogicException.hpp diff --git a/src/cxx/LogicException.hpp b/src/cxx/LogicException.hpp index a3574391f3..fb2ffd9c20 100644 --- a/src/cxx/LogicException.hpp +++ b/src/cxx/LogicException.hpp @@ -1,70 +1,70 @@ -/* - * LogicException.hpp - * - * Copyright 2006,2007 Martin Quinson, Malek Cherier - * All right reserved. - * - * This program is free software; you can redistribute - * it and/or modify it under the terms of the license - *(GNU LGPL) which comes with this package. - * - */ - -#ifndef MSG_LOGICEXCEPTION_HPP -#define MSG_LOGICEXCEPTION_HPP - -#ifndef __cplusplus - #error LogicException.hpp requires C++ compilation (use a .cxx suffix) -#endif - -#include - -namespace SimGrid -{ - namespace Msg - { - - class SIMGRIDX_EXPORT LogicException : public Exception - { - public: - - // Default constructor. - LogicException(); - - // Copy constructor. - LogicException(const LogicException& rLogicException); - - // This constructor takes the detail of the logic exception. - LogicException(const char* detail); - - // Destructor. - virtual ~LogicException(); - - // Operations. - - // Returns the reason of the exception : - // the message "Logic exception `detail'" - const char* toString(void) const; - - // Operators. - - // Assignement. - const LogicException& operator = (const LogicException& rLogicException); - - private : - - // Attributes. - - // A buffer used to build the message returned by the methode toString(). - char* reason; - }; - - - } // namespace Msg - -}// namespace SimGrid - - -#endif // !MSG_INVALIDARGUMENTEXCEPTION_HPP - - +/* + * LogicException.hpp + * + * Copyright 2006,2007 Martin Quinson, Malek Cherier + * All right reserved. + * + * This program is free software; you can redistribute + * it and/or modify it under the terms of the license + *(GNU LGPL) which comes with this package. + * + */ + +#ifndef MSG_LOGICEXCEPTION_HPP +#define MSG_LOGICEXCEPTION_HPP + +#ifndef __cplusplus + #error LogicException.hpp requires C++ compilation (use a .cxx suffix) +#endif + +#include + +namespace SimGrid +{ + namespace Msg + { + + class SIMGRIDX_EXPORT LogicException : public Exception + { + public: + + // Default constructor. + LogicException(); + + // Copy constructor. + LogicException(const LogicException& rLogicException); + + // This constructor takes the detail of the logic exception. + LogicException(const char* detail); + + // Destructor. + virtual ~LogicException(); + + // Operations. + + // Returns the reason of the exception : + // the message "Logic exception `detail'" + const char* toString(void) const; + + // Operators. + + // Assignement. + const LogicException& operator = (const LogicException& rLogicException); + + private : + + // Attributes. + + // A buffer used to build the message returned by the methode toString(). + char* reason; + }; + + + } // namespace Msg + +}// namespace SimGrid + + +#endif // !MSG_INVALIDARGUMENTEXCEPTION_HPP + +