ObjXMPP  Check-in [806244a355]

Overview
Comment:Add missing -[description] to XMPPStringPrepFailedException.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 806244a3554238ad1fd43cb46128bddfec46b18ad1f7931550dba55c0557b587
User & Date: js on 2011-02-16 22:52:49
Other Links: manifest | tags
Context
2011-02-16
23:27
Fix copyright check-in: 5673770963 user: florob@babelmonkeys.de tags: trunk
22:52
Add missing -[description] to XMPPStringPrepFailedException. check-in: 806244a355 user: js tags: trunk
22:42
Use more exceptions. check-in: 9f1add690a user: js tags: trunk
Changes

Modified src/XMPPExceptions.m from [e2e85372f3] to [529c7ab5af].

66
67
68
69
70
71
72
73
74


75
76
77
78
79
80
81
82
66
67
68
69
70
71
72


73
74

75
76
77
78
79
80
81







-
-
+
+
-







{
	OFAutoreleasePool *pool;

	if (description != nil)
		return description;

	pool = [[OFAutoreleasePool alloc] init];
	description = [[OFString alloc]
	    initWithFormat: @"An exception occurred in class %@!",
	description = [[OFString alloc] initWithFormat:
	    @"An exception occurred in class %@!", [self className]];
			    [self className]];
	[pool release];

	return description;
}
@end

@implementation XMPPStringPrepFailedException
124
125
126
127
128
129
130
















131
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146







+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

- (void)dealloc
{
	[profile release];
	[string release];

	[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