@@ -18,10 +18,12 @@ #import "OFBindFailedException.h" #import "OFString.h" @implementation OFBindFailedException +@synthesize host = _host, port = _port, socket = _socket, errNo = _errNo; + + (instancetype)exceptionWithHost: (OFString*)host port: (uint16_t)port socket: (id)socket errNo: (int)errNo { @@ -69,26 +71,6 @@ return [OFString stringWithFormat: @"Binding to port %" @PRIu16 @" on host %@ failed in socket of " @"type %@: %@", _port, _host, [_socket class], of_strerror(_errNo)]; } - -- (OFString*)host -{ - OF_GETTER(_host, true) -} - -- (uint16_t)port -{ - return _port; -} - -- (id)socket -{ - OF_GETTER(_socket, true) -} - -- (int)errNo -{ - return _errNo; -} @end