Skip to content

Commit

Permalink
add annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Maxwell committed Nov 1, 2016
1 parent 6effaa3 commit b9a279f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SwiftTryCatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@
#import <Foundation/Foundation.h>
@import UIKit;

NS_ASSUME_NONNULL_BEGIN

@interface SwiftTryCatch : NSObject

/**
Provides try catch functionality for swift by wrapping around Objective-C
*/
+ (void)try:(void (^)())try catch:(void (^)(NSException *))catch finally:(void (^)())finally;
+ (void)try:(__attribute__((noescape)) void(^ _Nullable)())try catch:(__attribute__((noescape)) void(^ _Nullable)(NSException*exception))catch finally:(__attribute__((noescape)) void(^ _Nullable)())finally;
+ (void)throwString:(NSString*)s;
+ (void)throwException:(NSException*)e;
@end

NS_ASSUME_NONNULL_END

0 comments on commit b9a279f

Please sign in to comment.