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