22#import "OFDNSResolver.h"
25OF_ASSUME_NONNULL_BEGIN
35 OFDNSResolverErrorCode _errorCode;
47@property (readonly, nonatomic) OFDNSResolverErrorCode errorCode;
56+ (instancetype)exceptionWithQuery: (
OFDNSQuery *)query
57 errorCode: (OFDNSResolverErrorCode)errorCode;
59+ (instancetype)exception OF_UNAVAILABLE;
68- (instancetype)initWithQuery: (
OFDNSQuery *)query
69 errorCode: (OFDNSResolverErrorCode)errorCode;
71- (instancetype)init OF_UNAVAILABLE;
77extern OFString *_OFDNSResolverErrorCodeDescription(
78 OFDNSResolverErrorCode errorCode) OF_VISIBILITY_HIDDEN;
An exception indicating that a DNS query failed.
Definition OFDNSQueryFailedException.h:33
A class representing a DNS query.
Definition OFDNSQuery.h:35
The base class for all exceptions in ObjFW.
Definition OFException.h:157
A class for handling strings.
Definition OFString.h:143