21 #import "OFDNSResolver.h" 23 OF_ASSUME_NONNULL_BEGIN
35 OFDNSResolverErrorCode _errorCode;
42 @property (readonly, nonatomic)
OFString *host;
52 @property (readonly, nonatomic) OFDNSResolverErrorCode errorCode;
63 + (instancetype)exceptionWithHost: (
OFString *)host
65 errorCode: (OFDNSResolverErrorCode)errorCode;
67 + (instancetype)exception OF_UNAVAILABLE;
78 - (instancetype)initWithHost: (
OFString *)host
80 errorCode: (OFDNSResolverErrorCode)errorCode;
82 - (instancetype)init OF_UNAVAILABLE;
A class for handling strings.
Definition: OFString.h:142
An exception indicating that resolving a host failed.
Definition: OFResolveHostFailedException.h:31
The base class for all exceptions in ObjFW.
Definition: OFException.h:156
OFSocketAddressFamily
A socket address family.
Definition: OFSocket.h:110