@@ -18,10 +18,12 @@ #import "OFUnlockFailedException.h" #import "OFString.h" @implementation OFUnlockFailedException +@synthesize lock = _lock; + + (instancetype)exceptionWithLock: (id )lock { return [[[self alloc] initWithLock: lock] autorelease]; } @@ -47,11 +49,6 @@ return [OFString stringWithFormat: @"A lock of type %@ could not be unlocked!", [_lock class]]; else return @"A lock could not be unlocked!"; } - -- (id )lock -{ - OF_GETTER(_lock, true) -} @end