@@ -41,14 +41,14 @@ * \param socket The socket which could not connect * \param host The host to which the connection failed * \param port The port on the host to which the connection failed * \return A new connection failed exception */ -+ exceptionWithClass: (Class)class_ - socket: (OFTCPSocket*)socket - host: (OFString*)host - port: (uint16_t)port; ++ (instancetype)exceptionWithClass: (Class)class_ + socket: (OFTCPSocket*)socket + host: (OFString*)host + port: (uint16_t)port; /** * Initializes an already allocated connection failed exception. * * \param class_ The class of the object which caused the exception