* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#pragma once
-#include<string>
+#include <string>
#include <utility>
-#include "namespaces.hh"
-
-//! Generic Exception thrown
+//! Generic Exception thrown
class PDNSException
{
public:
PDNSException() : reason("Unspecified") {};
- PDNSException(string r) :
+ PDNSException(std::string r) :
reason(std::move(r)) {};
- string reason; //! Print this to tell the user what went wrong
+ std::string reason; //! Print this to tell the user what went wrong
};
class TimeoutException : public PDNSException
{
public:
TimeoutException() : PDNSException() {}
- TimeoutException(const string& r) : PDNSException(r) {}
+ TimeoutException(const std::string& r) : PDNSException(r) {}
};