@@ -18,10 +18,12 @@ #import "OFConnectionFailedException.h" #import "OFString.h" @implementation OFConnectionFailedException +@synthesize host = _host, port = _port, socket = _socket, errNo = _errNo; + + (instancetype)exceptionWithHost: (OFString*)host port: (uint16_t)port socket: (id)socket { return [[[self alloc] initWithHost: host @@ -102,26 +104,6 @@ return [OFString stringWithFormat: @"A connection to %@ on port %" @PRIu16 @" could not be " @"established in socket of type %@!", _host, _port, [_socket class]]; } - -- (OFString*)host -{ - OF_GETTER(_host, true) -} - -- (uint16_t)port -{ - return _port; -} - -- (id)socket -{ - OF_GETTER(_socket, true) -} - -- (int)errNo -{ - return _errNo; -} @end