//
//  NVSystemErrorHandler.h
//  YCKit
//
//  Created by 任佳杰 on 2021/12/30.
//  Copyright © 2021 徐家骏. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN


typedef NS_ENUM(NSInteger, NVErrorType) {
    NVErrorTypeEncodeCreateError,
    NVErrorTypeEncodeError,
    NVErrorTypeDecodeCreateError,
    NVErrorTypeDecodeError,
};

@protocol NVSystemErrorHandlerDelegate <NSObject>

- (void)nvSystemErrorHandle:(NVErrorType)type;

@end

@interface NVSystemErrorHandler : NSObject

@property id<NVSystemErrorHandlerDelegate> delegate;

+ (instancetype)singleton;

@end

NS_ASSUME_NONNULL_END
