@@ -19,10 +19,11 @@ #import "OFAddressTranslationFailedException.h" #import "OFString.h" #import "OFTCPSocket.h" #import "common.h" +#import "macros.h" @implementation OFAddressTranslationFailedException + (instancetype)exceptionWithSocket: (OFTCPSocket*)socket { return [[[self alloc] initWithSocket: socket] autorelease]; @@ -37,10 +38,15 @@ socket: (OFTCPSocket*)socket { return [[[self alloc] initWithHost: host socket: socket] autorelease]; } + +- init +{ + OF_INVALID_INIT_METHOD +} - initWithSocket: (OFTCPSocket*)socket { return [self initWithHost: nil socket: socket];