Browse Source

[trac1067] isc::NotImplemented exception

Michal 'vorner' Vaner 13 years ago
parent
commit
ac08c1b86b
1 changed files with 12 additions and 0 deletions
  1. 12 0
      src/lib/exceptions/exceptions.h

+ 12 - 0
src/lib/exceptions/exceptions.h

@@ -137,6 +137,18 @@ public:
 };
 
 ///
+/// \brief A generic exception that is thrown when a function is
+/// not implemented.
+///
+/// This may be due to unfinished implementation or in case the
+/// function isn't even planned to be provided for that situation.
+class NotImplemented : public Exception {
+public:
+    NotImplemented(const char* file, size_t line, const char* what) :
+        isc::Exception(file, line, what) {}
+};
+
+///
 /// A shortcut macro to insert known values into exception arguments.
 ///
 /// It allows the \c stream argument to be part of a statement using an