Files
wehub-resource-sync 1d1286fadb
Build / Build and test (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:18:38 +08:00

15 lines
292 B
Objective-C

#import "PluginInvocationCatcher.h"
@implementation MTPluginInvocationCatcher
+ (nullable NSException *)catchExceptionInBlock:(NS_NOESCAPE void (^)(void))block {
@try {
block();
return nil;
} @catch (NSException *exception) {
return exception;
}
}
@end