16 #import "OFException.h"
17 #import "OFDNSResolver.h"
19 OF_ASSUME_NONNULL_BEGIN
31 of_dns_resolver_error_t _error;
37 @property (readonly, nonatomic)
OFString *host;
47 @property (readonly, nonatomic) of_dns_resolver_error_t error;
58 + (instancetype)exceptionWithHost: (
OFString *)host
60 error: (of_dns_resolver_error_t)error;
71 - (instancetype)initWithHost: (
OFString *)host
73 error: (of_dns_resolver_error_t)error;
The base class for all exceptions in ObjFW.
Definition: OFException.h:147
An exception indicating that resolving a host failed.
Definition: OFResolveHostFailedException.h:28
A class for handling strings.
Definition: OFString.h:132
of_socket_address_family_t
A socket address family.
Definition: socket.h:88