Kea 2.5.8
dhcp_config_error.h
Go to the documentation of this file.
1// Copyright (C) 2017 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 DHCP_CONFIG_ERROR_H
8#define DHCP_CONFIG_ERROR_H
9
11
12namespace isc {
13
18class ParseError : public isc::Exception {
19 public:
20 ParseError(const char* file, size_t line, const char* what) :
21 isc::Exception(file, line, what) { };
22};
23
37
44public:
45
51 ConfigError(const char* file, size_t line, const char* what)
52 : isc::Exception(file, line, what) {}
53};
54
55namespace dhcp {
56
59public:
65 DhcpConfigError(const char* file, size_t line, const char* what)
66 : isc::Exception(file, line, what) {}
67};
68
69}; // end of isc::dhcp namespace
70}; // end of isc namespace
71
72#endif // DHCP_CONFIG_ERROR_H
An exception that is thrown if an error occurs while configuring any server.
ConfigError(const char *file, size_t line, const char *what)
constructor
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.
Evaluation error exception raised when trying to parse.
ParseError(const char *file, size_t line, const char *what)
To be removed. Please use ConfigError instead.
DhcpConfigError(const char *file, size_t line, const char *what)
constructor
Defines the logger used by the top-level component of kea-lfc.