From 73d317c41ecec2d80a212c5d61f0a74c5b50ee70 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Wed, 16 Feb 2011 23:52:49 +0100 Subject: [PATCH] Add missing -[description] to XMPPStringPrepFailedException. --- src/XMPPExceptions.m | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/src/XMPPExceptions.m b/src/XMPPExceptions.m index 0cfb1a0..5be364d 100644 --- a/src/XMPPExceptions.m +++ b/src/XMPPExceptions.m @@ -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