Add missing -[description] to XMPPStringPrepFailedException.
This commit is contained in:
parent
d517b1d0e8
commit
73d317c41e
1 changed files with 18 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue