26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
+
+
+
+
+
-
+
-
-
-
-
-
-
-
+
-
|
#import "SSLInvalidCertificateException.h"
#import <ObjFW/macros.h>
@implementation SSLInvalidCertificateException
@synthesize reason = _reason;
+ (instancetype)exception
{
OF_UNRECOGNIZED_SELECTOR
}
+ exceptionWithReason: (OFString *)reason
+ (instancetype)exceptionWithReason: (OFString *)reason
{
return [[[self alloc] initWithReason: reason] autorelease];
}
- init
{
@try {
[self doesNotRecognizeSelector: _cmd];
} @catch (id e) {
[self release];
@throw e;
}
OF_INVALID_INIT_METHOD
abort();
}
- initWithReason: (OFString *)reason
{
self = [super init];
@try {
|