]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5076] ParseError exception defined in lib/cc
authorTomek Mrugalski <tomasz@isc.org>
Tue, 7 Feb 2017 11:44:05 +0000 (12:44 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 7 Feb 2017 11:44:05 +0000 (12:44 +0100)
src/lib/cc/dhcp_config_error.h

index 46ec01de83d22ec872ab4e7a51c9e1f1d0a73005..272dc655f2c4c15b9c14d57ab01c89a99feefcc9 100644 (file)
 #include <exceptions/exceptions.h>
 
 namespace isc {
+
+/// @brief Evaluation error exception raised when trying to parse.
+///
+/// This exception is expected to be thrown when parsing of the input
+/// configuration has failed. This exception is used by parsers.
+class ParseError : public isc::Exception {
+ public:
+ ParseError(const char* file, size_t line, const char* what) :
+    isc::Exception(file, line, what) { };
+};
+
 namespace dhcp {
 
 /// An exception that is thrown if an error occurs while configuring
@@ -48,4 +59,3 @@ public:
 }; // end of isc namespace
 
 #endif // DHCP_CONFIG_ERROR_H
-