IFlySpeechError.h
754 Bytes
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
43
44
45
46
47
48
49
50
51
52
53
54
//
// IFlySpeechError.h
// MSC
//
// Created by iflytek on 13-3-19.
// Copyright (c) 2013年 iflytek. All rights reserved.
//
#import <Foundation/Foundation.h>
/*!
* 错误描述类
*/
@interface IFlySpeechError : NSObject
/*!
* 错误码
*/
@property(nonatomic,assign) int errorCode;
/*!
* 错误码类
*/
@property(nonatomic,assign) int errorType;
/*!
* 错误描述
*/
@property(nonatomic,retain) NSString* errorDesc;
/*!
* 初始化
*
* @param errorCode -[in] 错误码
*
* @return IFlySpeechError对象
*/
+ (instancetype) initWithError:(int) errorCode;
/*!
* 获取错误码
*
* @return 错误码
*/
-(int) errorCode;
/*!
* 获取错误描述
*
* @return 错误描述
*/
- (NSString *) errorDesc;
@end