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 {
14public:
15 using std::runtime_error::runtime_error;
16};
17
18/// Unsupported domain error
19class UnsupportedDomainException : public ResolverException {
20public:
21 using ResolverException::ResolverException;
22};
23
24/// Host resolution error
25class NotResolvedException : public ResolverException {
26public:
27 using ResolverException::ResolverException;
28};
29
30/// Configuration error
31class InvalidConfigException : public ResolverException {
32public:
33 using ResolverException::ResolverException;
34};
35
36} // namespace clients::dns
37
38USERVER_NAMESPACE_END