userver
C++ Async Framework
Loading...
Searching...
No Matches
exception.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/clients/dns/exception.hpp
4
/// @brief DNS client exceptions
5
6
#
include
<
stdexcept
>
7
8
USERVER_NAMESPACE_BEGIN
9
10
namespace
clients::dns {
11
12
/// Generic resolver error
13
class
ResolverException
:
public
std::runtime_error {
14
public
:
15
using
std::runtime_error::runtime_error;
16
};
17
18
/// Unsupported domain error
19
class
UnsupportedDomainException
:
public
ResolverException
{
20
public
:
21
using
ResolverException
::ResolverException;
22
};
23
24
/// Host resolution error
25
class
NotResolvedException
:
public
ResolverException
{
26
public
:
27
using
ResolverException
::ResolverException;
28
};
29
30
/// Configuration error
31
class
InvalidConfigException
:
public
ResolverException
{
32
public
:
33
using
ResolverException
::ResolverException;
34
};
35
36
}
// namespace clients::dns
37
38
USERVER_NAMESPACE_END
userver
clients
dns
exception.hpp
Generated on Thu Oct 3 2024 13:16:42 for userver by
Doxygen
1.10.0