Modernize the code a little
This commit is contained in:
parent
c428df9b60
commit
cd3d39a9c2
8 changed files with 125 additions and 51 deletions
|
@ -24,6 +24,8 @@
|
|||
#import <ObjFW/OFString.h>
|
||||
#import <ObjFW/OFException.h>
|
||||
|
||||
OF_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface SSLInvalidCertificateException: OFException
|
||||
{
|
||||
OFString *_reason;
|
||||
|
@ -31,6 +33,10 @@
|
|||
|
||||
@property (readonly, nonatomic) OFString *reason;
|
||||
|
||||
+ exceptionWithReason: (OFString *)reason;
|
||||
- initWithReason: (OFString *)reason;
|
||||
+ (instancetype)exception;
|
||||
+ (instancetype)exceptionWithReason: (OFString *)reason;
|
||||
- init OF_UNAVAILABLE;
|
||||
- initWithReason: (OFString *)reason OF_DESIGNATED_INITIALIZER;
|
||||
@end
|
||||
|
||||
OF_ASSUME_NONNULL_END
|
||||
|
|
Reference in a new issue