Branch data Line data Source code
1 : : // Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC")
2 : : //
3 : : // Permission to use, copy, modify, and/or distribute this software for any
4 : : // purpose with or without fee is hereby granted, provided that the above
5 : : // copyright notice and this permission notice appear in all copies.
6 : : //
7 : : // THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
8 : : // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9 : : // AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
10 : : // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11 : : // LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
12 : : // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13 : : // PERFORMANCE OF THIS SOFTWARE.
14 : :
15 : :
16 : : #ifndef __IO_ERROR_H
17 : : #define __IO_ERROR_H
18 : :
19 : : #include <exceptions/exceptions.h>
20 : :
21 : : namespace isc {
22 : : namespace asiolink {
23 : :
24 : : /// \brief An exception that is thrown if an error occurs within the IO
25 : : /// module. This is mainly intended to be a wrapper exception class for
26 : : /// ASIO specific exceptions.
27 : 21 : class IOError : public isc::Exception {
28 : : public:
29 : 8 : IOError(const char* file, size_t line, const char* what) :
30 [ # # ][ # # ]: 32 : isc::Exception(file, line, what) {}
[ # # ][ # # ]
[ - + ][ # # ]
[ # # ]
31 : : };
32 : :
33 : :
34 : : } // namespace asiolink
35 : : } // namespace isc
36 : :
37 : : #endif // __IO_ERROR_H
|