@@ -16,18 +16,28 @@ #include "config.h" #import "OFAlreadyConnectedException.h" #import "OFString.h" + +#import "OFNotImplementedException.h" @implementation OFAlreadyConnectedException + newWithClass: (Class)class_ socket: (OFTCPSocket*)socket { return [[self alloc] initWithClass: class_ socket: socket]; } + +- initWithClass: (Class)class_ +{ + Class c = isa; + [self release]; + @throw [OFNotImplementedException newWithClass: c + selector: _cmd]; +} - initWithClass: (Class)class_ socket: (OFTCPSocket*)socket_ { self = [super initWithClass: class_];