@@ -161,10 +161,23 @@ return string; asprintf(&string, "The encoding is invalid for object of classs %s!", [object name]); + return string; +} +@end + +@implementation OFInvalidFormatException +- (const char*)cString +{ + if (string != NULL) + return string; + + asprintf(&string, "The format is invalid for object of classs %s!", + [object name]); + return string; } @end @implementation OFInitializationFailedException