From: Mukund Sivaraman Date: Fri, 10 Jan 2014 03:16:02 +0000 (+0530) Subject: [2518] Move NameParserException to exceptions.h header X-Git-Tag: bind10-1.2.0beta1-release~48^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18c3e8911a8e7c007fc95a33d449ca4e25d9d176;p=thirdparty%2Fkea.git [2518] Move NameParserException to exceptions.h header --- diff --git a/src/lib/dns/exceptions.h b/src/lib/dns/exceptions.h index 070b152c2b..d7adeddd7f 100644 --- a/src/lib/dns/exceptions.h +++ b/src/lib/dns/exceptions.h @@ -50,6 +50,16 @@ public: DNSProtocolError(file, line, what) {} virtual const Rcode& getRcode() const; }; + +/// +/// \brief Base class for name parser exceptions. +/// +class NameParserException : public isc::Exception { +public: + NameParserException(const char* file, size_t line, const char* what) : + isc::Exception(file, line, what) {} +}; + } } #endif // DNS_EXCEPTIONS_H diff --git a/src/lib/dns/name.h b/src/lib/dns/name.h index 02c868f039..7c750e3afc 100644 --- a/src/lib/dns/name.h +++ b/src/lib/dns/name.h @@ -20,7 +20,7 @@ #include #include -#include +#include namespace isc { namespace util { @@ -31,15 +31,6 @@ class OutputBuffer; namespace dns { class AbstractMessageRenderer; -/// -/// \brief Base class for name parser exceptions. -/// -class NameParserException : public Exception { -public: - NameParserException(const char* file, size_t line, const char* what) : - isc::Exception(file, line, what) {} -}; - /// /// \brief A standard DNS module exception that is thrown if the name parser /// encounters an empty label in the middle of a name.