JLChen
2021-05-18 a869383e163a18cdedcf587383c1eca043129754
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
//  Copyright © 2019 dahua. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
NS_ASSUME_NONNULL_BEGIN
 
@interface LCError : NSObject
 
@property (nonatomic, strong)   NSString * errorCode;
@property (nonatomic, strong)   NSString * errorMessage;
@property (nonatomic, strong, readonly) NSDictionary *errorInfo;
 
- (id)init;
 
+ (instancetype)errorWithCode:(NSString *)errorCode errorMessage:(nullable NSString *)errorMessage errorInfo:(nullable NSDictionary *)userInfo;
 
/**
 是否为鉴权失败:对新旧错误码进行统一处理
 
 @param errorCode 错误码
 @return YES/NO
 */
+ (BOOL)isAuthenticationFailed:(NSInteger)errorCode;
 
@end
 
NS_ASSUME_NONNULL_END