@@ -47,10 +47,18 @@ + (instancetype)exceptionWithSocket: (OFTCPSocket*)socket; /*! * @brief Creates a new, autoreleased address translation failed exception. * + * @param host The host for which translation was requested + * @return A new, autoreleased address translation failed exception + */ ++ (instancetype)exceptionWithHost: (OFString*)host; + +/*! + * @brief Creates a new, autoreleased address translation failed exception. + * * @param host The host for which translation was requested * @param socket The socket which could not translate the address * @return A new, autoreleased address translation failed exception */ + (instancetype)exceptionWithHost: (OFString*)host @@ -62,10 +70,18 @@ * @param socket The socket which could not translate the address * @return An initialized address translation failed exception */ - initWithSocket: (OFTCPSocket*)socket; +/*! + * @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: (OFString*)host; + /*! * @brief Initializes an already allocated address translation failed exception. * * @param host The host for which translation was requested * @param socket The socket which could not translate the address