From 309f6393c5d1050ba51839689d8de5b6a5aa4b23 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Mon, 3 Sep 2018 17:42:21 +0200 Subject: [PATCH] [65-libyang-adaptor] Added exception MissingKey --- src/lib/yang/adaptor.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.47.2