@@ -26,15 +26,10 @@ + (instancetype)exceptionWithCondition: (OFCondition*)condition { return [[[self alloc] initWithCondition: condition] autorelease]; } -- init -{ - OF_INVALID_INIT_METHOD -} - - initWithCondition: (OFCondition*)condition { self = [super init]; _condition = [condition retain]; @@ -49,9 +44,13 @@ [super dealloc]; } - (OFString*)description { - return [OFString stringWithFormat: - @"Waiting for a condition of type %@ failed!", [_condition class]]; + if (_condition != nil) + return [OFString stringWithFormat: + @"Waiting for a condition of type %@ failed!", + [_condition class]]; + else + return @"Waiting for a condition failed!"; } @end