]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2518] Move NameParserException to exceptions.h header
authorMukund Sivaraman <muks@isc.org>
Fri, 10 Jan 2014 03:16:02 +0000 (08:46 +0530)
committerMukund Sivaraman <muks@isc.org>
Fri, 10 Jan 2014 03:16:02 +0000 (08:46 +0530)
src/lib/dns/exceptions.h
src/lib/dns/name.h

index 070b152c2b01cf72e97882104c4254e2bdb559c1..d7adeddd7f43a99199e7a308195149bd1dc90d0d 100644 (file)
@@ -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
index 02c868f03956c3249399641618652f049300d9bb..7c750e3afc813f659f7d823fb0dd1097dad6462e 100644 (file)
@@ -20,7 +20,7 @@
 #include <string>
 #include <vector>
 
-#include <exceptions/exceptions.h>
+#include <dns/exceptions.h>
 
 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.