Browse Source

[4116] Define EvalNotBoolError

Francis Dupont 9 years ago
parent
commit
b4564e3f8f
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/lib/eval/token.h

+ 8 - 0
src/lib/eval/token.h

@@ -46,6 +46,14 @@ public:
         isc::Exception(file, line, what) { };
 };
 
+/// @brief EvalNotBoolError is thrown when a boolean (i.e., "false" or
+///        "true") was required but is not.
+class EvalNotBoolError : public Exception {
+    EvalNotBoolError(const char* file, size_t line, const char* what) :
+        isc::Exception(file, line, what) { };
+};
+
+
 /// @brief Base class for all tokens
 ///
 /// It provides an interface for all tokens and storage for string representation