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;
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
instancetype exception()
Creates a new, autoreleased exception.
Definition OFException.m:283
instancetype init()
Initializes an already allocated object.
Definition OFObject.m:696
An exception indicating that resolving a host failed.
Definition OFResolveHostFailedException.h:32
OFDNSResolverErrorCode errorCode
The error code from the resolver.
Definition OFResolveHostFailedException.h:52
OFSocketAddressFamily addressFamily
The address family for which the host could not be resolved.
Definition OFResolveHostFailedException.h:47
OFString * host
The host which could not be resolved.
Definition OFResolveHostFailedException.h:42
A class for handling strings.
Definition OFString.h:143