36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
}
+ (instancetype)exceptionWithReason: (OFString *)reason
{
return [[[self alloc] initWithReason: reason] autorelease];
}
- init
{
OF_INVALID_INIT_METHOD
}
- initWithReason: (OFString *)reason
{
self = [super init];
@try {
_reason = [reason copy];
} @catch (id e) {
[self release];
|
|
|
|
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
}
+ (instancetype)exceptionWithReason: (OFString *)reason
{
return [[[self alloc] initWithReason: reason] autorelease];
}
- (instancetype)init
{
OF_INVALID_INIT_METHOD
}
- (instancetype)initWithReason: (OFString *)reason
{
self = [super init];
@try {
_reason = [reason copy];
} @catch (id e) {
[self release];
|