Kea  1.9.9-git
utils.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2015 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 DHCPSRV_UTILS_H
8 #define DHCPSRV_UTILS_H
9 
10 #include <exceptions/exceptions.h>
11 
12 namespace isc {
13 namespace dhcp {
14 
17 class RFCViolation : public isc::Exception {
18 public:
19 
25 RFCViolation(const char* file, size_t line, const char* what) :
26  isc::Exception(file, line, what) {}
27 };
28 
29 }; // namespace isc::dhcp
30 }; // namespace isc
31 
32 #endif // DHCPSRV_UTILS_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.
An exception that is thrown if a DHCPv6 protocol violation occurs while processing a message (e...
Definition: utils.h:17
RFCViolation(const char *file, size_t line, const char *what)
constructor
Definition: utils.h:25