IFlySpeechError.h 754 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // IFlySpeechError.h
  3. // MSC
  4. //
  5. // Created by iflytek on 13-3-19.
  6. // Copyright (c) 2013年 iflytek. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. /*!
  10. * 错误描述类
  11. */
  12. @interface IFlySpeechError : NSObject
  13. /*!
  14. * 错误码
  15. */
  16. @property(nonatomic,assign) int errorCode;
  17. /*!
  18. * 错误码类
  19. */
  20. @property(nonatomic,assign) int errorType;
  21. /*!
  22. * 错误描述
  23. */
  24. @property(nonatomic,retain) NSString* errorDesc;
  25. /*!
  26. * 初始化
  27. *
  28. * @param errorCode -[in] 错误码
  29. *
  30. * @return IFlySpeechError对象
  31. */
  32. + (instancetype) initWithError:(int) errorCode;
  33. /*!
  34. * 获取错误码
  35. *
  36. * @return 错误码
  37. */
  38. -(int) errorCode;
  39. /*!
  40. * 获取错误描述
  41. *
  42. * @return 错误描述
  43. */
  44. - (NSString *) errorDesc;
  45. @end