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
30
31
32
33
34
35
36
37
38
39
40
41
42
//
//  Copyright © 2016年 dahua. All rights reserved.
//
 
#import "LCError.h"
#import <UIKit/UIKit.h>
 
@interface LCError (LeChange)
 
@property (strong,nonatomic)NSString *errorDescription;
 
/// 显示平台的错误描述
- (void)showPlatformTips;
 
/// 平台错误信息
- (NSString *)platformTips;
/**
 *  @brief 显示错误提示,如果是未知错误则提示自定义内容
 *
 *  @param customTips 如果是nil则显示已定义错误,不是nil则在出现未知错误时替换为自定义错误
 */
- (void)showErrorTips:(NSString*)customTips;
 
/**
 *  @brief 显示错误提示,如果是未知错误则提示自定义内容
 *
 */
- (void)showErrorTips;
/**
 *  @brief 显示错误提示,如果是未知错误则提示自定义内容 在对应视图中
 *
 */
- (void)showErrorTipsInView:(UIView *)view;
/**
 获取错误描述
 
 @param customTips 自定义描述:如果没有相应的类型,返回自定义的错误
 @return NSString
 */
- (NSString *)descriptionByCustom:(NSString *)customTips;
 
@end