From: Tomek Mrugalski Date: Tue, 7 Feb 2017 11:44:05 +0000 (+0100) Subject: [5076] ParseError exception defined in lib/cc X-Git-Tag: trac3590_base~3^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3babe7e4085e5a212a88c398bf510d51b3e2c1fe;p=thirdparty%2Fkea.git [5076] ParseError exception defined in lib/cc --- diff --git a/src/lib/cc/dhcp_config_error.h b/src/lib/cc/dhcp_config_error.h index 46ec01de83..272dc655f2 100644 --- a/src/lib/cc/dhcp_config_error.h +++ b/src/lib/cc/dhcp_config_error.h @@ -10,6 +10,17 @@ #include 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 -