ObjXMPP  Check-in [5df36353c6]

Overview
Comment:Clean up exceptions.

The description generated by %@ is automatically released, so no need
for an autorelease pool.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5df36353c63c1eb34435e458f2b86a310702dd1c1a1af8b6656c9db28bdd69a7
User & Date: js on 2011-02-26 14:13:40
Other Links: manifest | tags
Context
2011-03-09
03:32
Add basic STARTTLS support check-in: 3a3855f187 user: florob@babelmonkeys.de tags: trunk
2011-02-26
14:13
Clean up exceptions. check-in: 5df36353c6 user: js tags: trunk
2011-02-25
22:52
A little cleanup work. Still needs a configure script. check-in: c8b860a877 user: js tags: trunk
Changes

Modified src/XMPPExceptions.m from [60f59f8f6f] to [e5e54a18a7].

60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
	[connection release];

	[super dealloc];
}

- (OFString*)description
{
	OFAutoreleasePool *pool;

	if (description != nil)
		return description;

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

	return description;
}
@end

@implementation XMPPStringPrepFailedException
@synthesize profile, string;







<
<



<

|
<







60
61
62
63
64
65
66


67
68
69

70
71

72
73
74
75
76
77
78
	[connection release];

	[super dealloc];
}

- (OFString*)description
{


	if (description != nil)
		return description;


	description = [[OFString alloc] initWithFormat:
	    @"An exception occurred in class %@!", inClass];


	return description;
}
@end

@implementation XMPPStringPrepFailedException
@synthesize profile, string;
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
	[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

@implementation XMPPIDNATranslationFailedException
@synthesize operation, string;







<
<



<



<







122
123
124
125
126
127
128


129
130
131

132
133
134

135
136
137
138
139
140
141
	[string release];

	[super dealloc];
}

- (OFString*)description
{


	if (description != nil)
		return description;


	description = [[OFString alloc] initWithFormat:
	    @"Stringprep with profile %@ failed on string '%@'!",
	    profile, string];


	return description;
}
@end

@implementation XMPPIDNATranslationFailedException
@synthesize operation, string;
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
	[string release];

	[super dealloc];
}

- (OFString*)description
{
	OFAutoreleasePool *pool;

	if (description != nil)
		return description;

	pool = [[OFAutoreleasePool alloc] init];
	description = [[OFString alloc] initWithFormat:
	    @"IDNA operation %@ failed on string '%@'!",
	    operation, string];
	[pool release];

	return description;
}
@end

@implementation XMPPAuthFailedException
@synthesize reason;







<
<



<

|
<
<







185
186
187
188
189
190
191


192
193
194

195
196


197
198
199
200
201
202
203
	[string release];

	[super dealloc];
}

- (OFString*)description
{


	if (description != nil)
		return description;


	description = [[OFString alloc] initWithFormat:
	    @"IDNA operation %@ failed on string '%@'!", operation, string];



	return description;
}
@end

@implementation XMPPAuthFailedException
@synthesize reason;
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
	[reason release];

	[super dealloc];
}

- (OFString*)description
{
	OFAutoreleasePool *pool;

	if (description != nil)
		return description;

	pool = [[OFAutoreleasePool alloc] init];
	description = [[OFString alloc] initWithFormat:
	    @"Authentication failed. Reason: %@!", reason];
	[pool release];

	return description;
}
@end







<
<



<


<




242
243
244
245
246
247
248


249
250
251

252
253

254
255
256
257
	[reason release];

	[super dealloc];
}

- (OFString*)description
{


	if (description != nil)
		return description;


	description = [[OFString alloc] initWithFormat:
	    @"Authentication failed. Reason: %@!", reason];


	return description;
}
@end