@@ -18,10 +18,12 @@ #import "OFAlreadyConnectedException.h" #import "OFString.h" @implementation OFAlreadyConnectedException +@synthesize socket = _socket; + + (instancetype)exceptionWithSocket: (id)socket { return [[[self alloc] initWithSocket: socket] autorelease]; } @@ -49,11 +51,6 @@ @"thus can't be connected or bound again!", [_socket class]]; else return @"A connection has already been established!"; } - -- (id)socket -{ - OF_GETTER(_socket, true) -} @end