20#import "OFException.h"
22#import "OFDNSResolver.h"
25OF_ASSUME_NONNULL_BEGIN
36 OFDNSResolverErrorCode _errorCode;
48@property (readonly, nonatomic) OFDNSResolverErrorCode errorCode;
57+ (instancetype)exceptionWithQuery: (
OFDNSQuery *)query
58 errorCode: (OFDNSResolverErrorCode)errorCode;
60+ (instancetype)exception OF_UNAVAILABLE;
69- (instancetype)initWithQuery: (
OFDNSQuery *)query
70 errorCode: (OFDNSResolverErrorCode)errorCode;
72- (instancetype)init OF_UNAVAILABLE;
78extern OFString *OFDNSResolverErrorCodeDescription(
79 OFDNSResolverErrorCode errorCode);
An exception indicating that a DNS query failed.
Definition OFDNSQueryFailedException.h:34
A class representing a DNS query.
Definition OFDNSQuery.h:35
The base class for all exceptions in ObjFW.
Definition OFException.h:155
A class for handling strings.
Definition OFString.h:139