@@ -17,19 +17,29 @@ #include "config.h" #import "OFAcceptFailedException.h" #import "OFString.h" +#import "OFNotImplementedException.h" + #import "common.h" @implementation OFAcceptFailedException + 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_];