Kea 2.7.6
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.
MissingKey(const char *file, size_t line, const char *what)
Missing node error.
MissingNode(const char *file, size_t line, const char *what)
Generic NETCONF error.
NetconfError(const char *file, size_t line, const char *what)