Kea  1.9.9-git
sysrepo_error.h
Go to the documentation of this file.
1 // Copyright (C) 2018 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 
12 namespace isc {
13 namespace yang {
14 
16 class SysrepoError : public isc::Exception {
17 public:
18  SysrepoError(const char* file, size_t line, const char* what) :
19  isc::Exception(file, line, what)
20  {}
21 };
22 
23 }; // end of namespace isc::yang
24 }; // end of namespace isc
25 
26 #endif // ISC_SYSREPO_ERROR_H
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
This is a base class for exceptions thrown from the DNS library module.
Defines the logger used by the top-level component of kea-dhcp-ddns.
SysrepoError(const char *file, size_t line, const char *what)
Definition: sysrepo_error.h:18