Coverage Report

Created: 2025-12-08 07:54

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/kea/src/lib/asiolink/io_error.h
Line
Count
Source
1
// Copyright (C) 2011-2024 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
8
#ifndef IO_ERROR_H
9
#define IO_ERROR_H
10
11
#include <exceptions/exceptions.h>
12
13
namespace isc {
14
namespace asiolink {
15
16
/// \brief An exception that is thrown if an error occurs within the IO
17
/// module.  This is mainly intended to be a wrapper exception class for
18
/// ASIO specific exceptions.
19
class IOError : public isc::Exception {
20
public:
21
    IOError(const char* file, size_t line, const char* what) :
22
3.02k
        isc::Exception(file, line, what) {}
23
};
24
25
}  // namespace asiolink
26
}  // namespace isc
27
28
#endif // IO_ERROR_H