Browse Source

[2518] Move NameParserException to exceptions.h header

Mukund Sivaraman 11 years ago
parent
commit
18c3e8911a
2 changed files with 11 additions and 10 deletions
  1. 10 0
      src/lib/dns/exceptions.h
  2. 1 10
      src/lib/dns/name.h

+ 10 - 0
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

+ 1 - 10
src/lib/dns/name.h

@@ -20,7 +20,7 @@
 #include <string>
 #include <vector>
 
-#include <exceptions/exceptions.h>
+#include <dns/exceptions.h>
 
 namespace isc {
 namespace util {
@@ -32,15 +32,6 @@ 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.
 ///