Modernize the code a little
This commit is contained in:
parent
c428df9b60
commit
cd3d39a9c2
8 changed files with 125 additions and 51 deletions
|
@ -30,21 +30,19 @@
|
|||
@implementation SSLInvalidCertificateException
|
||||
@synthesize reason = _reason;
|
||||
|
||||
+ exceptionWithReason: (OFString *)reason
|
||||
+ (instancetype)exception
|
||||
{
|
||||
OF_UNRECOGNIZED_SELECTOR
|
||||
}
|
||||
|
||||
+ (instancetype)exceptionWithReason: (OFString *)reason
|
||||
{
|
||||
return [[[self alloc] initWithReason: reason] autorelease];
|
||||
}
|
||||
|
||||
- init
|
||||
{
|
||||
@try {
|
||||
[self doesNotRecognizeSelector: _cmd];
|
||||
} @catch (id e) {
|
||||
[self release];
|
||||
@throw e;
|
||||
}
|
||||
|
||||
abort();
|
||||
OF_INVALID_INIT_METHOD
|
||||
}
|
||||
|
||||
- initWithReason: (OFString *)reason
|
||||
|
|
Reference in a new issue