@@ -26,15 +26,10 @@ + (instancetype)exceptionWithThread: (OFThread*)thread { return [[[self alloc] initWithThread: thread] autorelease]; } -- init -{ - OF_INVALID_INIT_METHOD -} - - initWithThread: (OFThread*)thread { self = [super init]; _thread = [thread retain]; @@ -49,9 +44,12 @@ [super dealloc]; } - (OFString*)description { - return [OFString stringWithFormat: - @"Starting a thread of type %@ failed!", [_thread class]]; + if (_thread != nil) + return [OFString stringWithFormat: + @"Starting a thread of type %@ failed!", [_thread class]]; + else + return @"Starting a thread failed!"; } @end