@@ -46,23 +46,23 @@ * @param host The host for which translation was requested * @return A new, autoreleased address translation failed exception */ + (instancetype)exceptionWithHost: (nullable OFString *)host; ++ (instancetype)exceptionWithError: (int)error; + (instancetype)exceptionWithHost: (nullable OFString *)host error: (int)error; -+ (instancetype)exceptionWithError: (int)error; /*! * @brief Initializes an already allocated address translation failed exception. * * @param host The host for which translation was requested * @return An initialized address translation failed exception */ - initWithHost: (nullable OFString *)host; +- (instancetype)initWithError: (int)error; - (instancetype)initWithHost: (nullable OFString *)host - error: (int)error; -- (instancetype)initWithError: (int)error; + error: (int)error OF_DESIGNATED_INITIALIZER; @end OF_ASSUME_NONNULL_END