Kea 2.5.8
netconf_error.h
Go to the documentation of this file.
1// Copyright (C) 2018-2022 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef ISC_SYSREPO_ERROR_H
8#define ISC_SYSREPO_ERROR_H 1
9
11
12namespace isc {
13namespace yang {
14
16struct MissingNode : public Exception {
17 MissingNode(const char* file, size_t line, const char* what) :
18 Exception(file, line, what)
19 {}
20}; // MissingNode
21
23struct MissingKey : public MissingNode {
24 MissingKey(const char* file, size_t line, const char* what) :
25 MissingNode(file, line, what)
26 {}
27}; // MissingKey
28
30struct NetconfError : public Exception {
31 NetconfError(const char* file, size_t line, const char* what) :
32 Exception(file, line, what)
33 {}
34}; // NetconfError
35
36} // namespace yang
37} // namespace isc
38
39#endif // ISC_SYSREPO_ERROR_H
This is a base class for exceptions thrown from the DNS library module.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
Defines the logger used by the top-level component of kea-lfc.
Missing key error.
Definition: netconf_error.h:23
MissingKey(const char *file, size_t line, const char *what)
Definition: netconf_error.h:24
Missing node error.
Definition: netconf_error.h:16
MissingNode(const char *file, size_t line, const char *what)
Definition: netconf_error.h:17
Generic NETCONF error.
Definition: netconf_error.h:30
NetconfError(const char *file, size_t line, const char *what)
Definition: netconf_error.h:31