@@ -1231,10 +1231,23 @@ - (int)errNo { return err; } @end + +@implementation OFThreadStartFailedException +- (OFString*)string +{ + if (string != nil) + return string; + + string = [[OFString alloc] initWithFormat: + @"Starting a thread of class %s failed!", [class_ className]]; + + return string; +} +@end @implementation OFThreadJoinFailedException - (OFString*)string { if (string != nil) @@ -1242,10 +1255,24 @@ string = [[OFString alloc] initWithFormat: @"Joining a thread of class %s failed! Most likely, another thread " @"already waits for the thread to join.", [class_ className]]; + return string; +} +@end + +@implementation OFThreadStillRunningException +- (OFString*)string +{ + if (string != nil) + return string; + + string = [[OFString alloc] initWithFormat: + @"Deallocation of a thread of type %s was tried, even though it " + @"was still running", [class_ className]]; + return string; } @end @implementation OFMutexLockFailedException