@@ -18,10 +18,12 @@ #import "OFAcceptFailedException.h" #import "OFString.h" @implementation OFAcceptFailedException +@synthesize socket = _socket, errNo = _errNo; + + (instancetype)exceptionWithSocket: (id)socket errNo: (int)errNo { return [[[self alloc] initWithSocket: socket errNo: errNo] autorelease]; @@ -54,16 +56,6 @@ { return [OFString stringWithFormat: @"Failed to accept connection in socket of class %@: %@", [_socket class], of_strerror(_errNo)]; } - -- (id)socket -{ - OF_GETTER(_socket, true) -} - -- (int)errNo -{ - return _errNo; -} @end