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;
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
OFDNSResolverErrorCode errorCode
The error code from the resolver.
Definition OFDNSQueryFailedException.h:47
OFDNSQuery * query
The query which could not be performed.
Definition OFDNSQueryFailedException.h:42
A class representing a DNS query.
Definition OFDNSQuery.h:35
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
A class for handling strings.
Definition OFString.h:143