︙ | | | ︙ | |
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
- initWithClass: (Class)class_
connection: (XMPPConnection*)conn
{
self = [super initWithClass: class_];
@try {
connection = [conn retain];
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
- (void)dealloc
{
[connection release];
[super dealloc];
}
- (OFString*)description
{
if (description != nil)
return description;
description = [[OFString alloc] initWithFormat:
@"An exception occurred in class %@!", inClass];
return description;
}
- (XMPPConnection*)connection
{
return connection;
}
@end
@implementation XMPPStreamErrorException
+ exceptionWithClass: (Class)class_
connection: (XMPPConnection*)conn
condition: (OFString*)condition_
|
|
|
|
|
|
|
|
|
|
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
- initWithClass: (Class)class_
connection: (XMPPConnection*)conn
{
self = [super initWithClass: class_];
@try {
_connection = [conn retain];
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
- (void)dealloc
{
[_connection release];
[super dealloc];
}
- (OFString*)description
{
if (_description != nil)
return _description;
_description = [[OFString alloc] initWithFormat:
@"An exception occurred in class %@!", _inClass];
return _description;
}
- (XMPPConnection*)connection
{
return _connection;
}
@end
@implementation XMPPStreamErrorException
+ exceptionWithClass: (Class)class_
connection: (XMPPConnection*)conn
condition: (OFString*)condition_
|
︙ | | | ︙ | |
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
[reason release];
[super dealloc];
}
- (OFString*)description
{
if (description != nil)
return description;
description = [[OFString alloc] initWithFormat:
@"Got stream error: %@. Reason: %@!", condition, reason];
return description;
}
- (OFString*)condition
{
return condition;
}
|
|
|
|
|
|
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
[reason release];
[super dealloc];
}
- (OFString*)description
{
if (_description != nil)
return _description;
_description = [[OFString alloc] initWithFormat:
@"Got stream error: %@. Reason: %@!", condition, reason];
return _description;
}
- (OFString*)condition
{
return condition;
}
|
︙ | | | ︙ | |
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
|
[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;
}
- (OFString*)profile
{
return profile;
}
|
|
|
|
|
|
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
|
[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;
}
- (OFString*)profile
{
return profile;
}
|
︙ | | | ︙ | |
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
|
[string release];
[super dealloc];
}
- (OFString*)description
{
if (description != nil)
return description;
description = [[OFString alloc] initWithFormat:
@"IDNA operation %@ failed on string '%@'!", operation, string];
return description;
}
- (OFString*)operation
{
return operation;
}
|
|
|
|
|
|
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
|
[string release];
[super dealloc];
}
- (OFString*)description
{
if (_description != nil)
return _description;
_description = [[OFString alloc] initWithFormat:
@"IDNA operation %@ failed on string '%@'!", operation, string];
return _description;
}
- (OFString*)operation
{
return operation;
}
|
︙ | | | ︙ | |
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
|
[reason release];
[super dealloc];
}
- (OFString*)description
{
if (description != nil)
return description;
description = [[OFString alloc] initWithFormat:
@"Authentication failed. Reason: %@!", reason];
return description;
}
- (OFString*)reason
{
return reason;
}
@end
|
|
|
|
|
|
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
|
[reason release];
[super dealloc];
}
- (OFString*)description
{
if (_description != nil)
return _description;
_description = [[OFString alloc] initWithFormat:
@"Authentication failed. Reason: %@!", reason];
return _description;
}
- (OFString*)reason
{
return reason;
}
@end
|