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