Browse Source

new exception

wlodek 11 years ago
parent
commit
fbc7aeaac7
1 changed files with 15 additions and 0 deletions
  1. 15 0
      src/lib/dhcpsrv/utils.h

+ 15 - 0
src/lib/dhcpsrv/utils.h

@@ -34,6 +34,21 @@ RFCViolation(const char* file, size_t line, const char* what) :
     isc::Exception(file, line, what) {}
 };
 
+class ServerID_mismatch : public isc::Exception {
+public:
+
+/// @brief constructor
+///
+/// @param file name of the file, where exception occurred
+/// @param line line of the file, where exception occurred
+/// @param what text description of the issue that caused exception
+ServerID_mismatch(const char* file, size_t line, const char* what) :
+    isc::Exception(file, line, what) {}
+};
+
+
+
+
 }; // namespace isc::dhcp
 }; // namespace isc