Kea  1.9.9-git
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 
10 #include <exceptions/exceptions.h>
11 
12 namespace isc {
13 
18 class 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 
43 class ConfigError : public isc::Exception {
44 public:
45 
51  ConfigError(const char* file, size_t line, const char* what)
52  : isc::Exception(file, line, what) {}
53 };
54 
55 namespace dhcp {
56 
59 public:
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
DhcpConfigError(const char *file, size_t line, const char *what)
constructor
An exception that is thrown if an error occurs while configuring any server.
To be removed. Please use ConfigError instead.
Evaluation error exception raised when trying to parse.
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.
ParseError(const char *file, size_t line, const char *what)
Defines the logger used by the top-level component of kea-dhcp-ddns.
ConfigError(const char *file, size_t line, const char *what)
constructor