2 * InvalidArgumentException.hpp
\r
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_INVALIDARGUMENTEXCEPTION_HPP
\r
14 #define MSG_INVALIDARGUMENTEXCEPTION_HPP
\r
16 #include "Exception.hpp"
\r
23 class InvalidArgumentException : public Exception
\r
27 // Default constructor.
\r
28 InvalidArgumentException();
\r
30 // Copy constructor.
\r
31 InvalidArgumentException(const InvalidArgumentException& rInvalidArgumentException);
\r
33 // This constructor takes the name of the invalid argument.
\r
34 InvalidArgumentException(const char* name);
\r
37 virtual ~InvalidArgumentException();
\r
41 // Returns the reason of the exception :
\r
42 // the message "Invalid argument `argument name'"
\r
43 const char* toString(void) const;
\r
48 const InvalidArgumentException& operator = (const InvalidArgumentException& rInvalidArgumentException);
\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