FWException

@interface FWException : NSObject

框架异常捕获类

  • 自定义需要捕获未定义方法异常的类,默认[NSNull, NSNumber, NSString, NSArray, NSDictionary]

    Declaration

    Objective-C

    @property (class, nonatomic, copy) NSArray<Class> *_Nonnull captureClasses;
  • 开启框架自带异常捕获功能,默认关闭

    Declaration

    Objective-C

    + (void)startCaptureExceptions;
  • 捕获自定义异常并发送通知,可设置备注

    Declaration

    Objective-C

    + (void)captureException:(nonnull NSException *)exception
                      remark:(nullable NSString *)remark;