21#import "OFDNSResolver.h"
23OF_ASSUME_NONNULL_BEGIN
35 OFDNSResolverErrorCode _errorCode;
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;
OFSocketAddressFamily
A socket address family.
Definition OFSocket.h:110
The base class for all exceptions in ObjFW.
Definition OFException.h:157
An exception indicating that resolving a host failed.
Definition OFResolveHostFailedException.h:32
A class for handling strings.
Definition OFString.h:143