userver: userver/clients/dns/exception.hpp Source File
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
8USERVER_NAMESPACE_BEGIN
9
10namespace clients::dns {
11
12/// Generic resolver error
13class ResolverException : public std::runtime_error {
14 public:
15 using std::runtime_error::runtime_error;
16};
17
18/// Unsupported domain error
20 public:
21 using ResolverException::ResolverException;
22};
23
24/// Host resolution error
26 public:
27 using ResolverException::ResolverException;
28};
29
30/// Configuration error
32 public:
33 using ResolverException::ResolverException;
34};
35
36} // namespace clients::dns
37
38USERVER_NAMESPACE_END