Kea: netconf_error.h Source File

| Kea 3.2.0-git

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
10#include <exceptions/exceptions.h>
11
12namespace isc {
13namespace yang {
14
16 struct MissingNode : public Exception {
17 MissingNode(const char* file, size_t line, const char* what) :
18 Exception(file, line, what)
19 {}
20}; // MissingNode
21
23 struct MissingKey : public MissingNode {
24 MissingKey(const char* file, size_t line, const char* what) :
25 MissingNode(file, line, what)
26 {}
27}; // MissingKey
28
30 struct 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
isc::Exception::Exception
Exception(const char *file, size_t line, const char *what)
Constructor for a given type for exceptions with file name and file line number.
Definition exceptions/exceptions.cc:17
isc::Exception::what
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
Definition exceptions/exceptions.cc:32
exceptions.h
isc::yang
Definition adaptor.cc:17
isc
Defines the logger used by the top-level component of kea-lfc.
Definition check_exists_add.cc:18
isc::yang::MissingKey::MissingKey
MissingKey(const char *file, size_t line, const char *what)
Definition netconf_error.h:24
isc::yang::MissingNode::MissingNode
MissingNode(const char *file, size_t line, const char *what)
Definition netconf_error.h:17
isc::yang::NetconfError::NetconfError
NetconfError(const char *file, size_t line, const char *what)
Definition netconf_error.h:31