From: Francis Dupont Date: Mon, 3 Sep 2018 15:42:21 +0000 (+0200) Subject: [65-libyang-adaptor] Added exception MissingKey X-Git-Tag: 30-implement-control-socket-for-ddns_base~1^2~2^2~2^2^2~1 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=20a32bd0ba7e9b09223eb066225e5e87f3d17ed9;p=thirdparty%2Fkea.git [65-libyang-adaptor] Added exception MissingKey --- diff --git a/src/lib/yang/adaptor.h b/src/lib/yang/adaptor.h index d8c05b2fd8..f5cb6d5383 100644 --- a/src/lib/yang/adaptor.h +++ b/src/lib/yang/adaptor.h @@ -7,11 +7,20 @@ #ifndef ISC_ADAPTOR_H #define ISC_ADAPTOR_H 1 +#include #include namespace isc { namespace yang { +/// @brief Missing key error. +class MissingKey : public isc::Exception { +public: + MissingKey(const char* file, size_t line, const char* what) : + isc::Exception(file, line, what) + {} +}; + /// @brief JSON adaptor between canonical Kea and Yang models. /// /// An adaptor slightly modifies a JSON configuration between canonical Kea