Add missing -[description] to XMPPStringPrepFailedException.

This commit is contained in:
Jonathan Schleifer 2011-02-16 23:52:49 +01:00
parent d517b1d0e8
commit 73d317c41e

View file

@ -70,9 +70,8 @@
return description;
pool = [[OFAutoreleasePool alloc] init];
description = [[OFString alloc]
initWithFormat: @"An exception occurred in class %@!",
[self className]];
description = [[OFString alloc] initWithFormat:
@"An exception occurred in class %@!", [self className]];
[pool release];
return description;
@ -128,4 +127,20 @@
[super dealloc];
}
- (OFString*)description
{
OFAutoreleasePool *pool;
if (description != nil)
return description;
pool = [[OFAutoreleasePool alloc] init];
description = [[OFString alloc] initWithFormat:
@"Stringprep with profile %@ failed on string '%@'!",
profile, string];
[pool release];
return description;
}
@end