QNErrorCode.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //
  2. // QNErrorCode.h
  3. // QiniuSDK
  4. //
  5. // Created by yangsen on 2020/10/21.
  6. // Copyright © 2020 Qiniu. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. /**
  10. * 中途取消的状态码
  11. */
  12. extern const int kQNRequestCancelled;
  13. /**
  14. * 网络错误状态码
  15. */
  16. extern const int kQNNetworkError;
  17. /**
  18. * 错误参数状态码
  19. */
  20. extern const int kQNInvalidArgument;
  21. /**
  22. * 0 字节文件或数据
  23. */
  24. extern const int kQNZeroDataSize;
  25. /**
  26. * 错误token状态码
  27. */
  28. extern const int kQNInvalidToken;
  29. /**
  30. * 读取文件错误状态码
  31. */
  32. extern const int kQNFileError;
  33. /**
  34. * 本地 I/O 错误
  35. */
  36. extern const int kQNLocalIOError;
  37. /**
  38. * ⽤户劫持错误 错误
  39. */
  40. extern const int kQNMaliciousResponseError;
  41. /**
  42. * 没有可用的Host 错误【废弃】
  43. */
  44. extern const int kQNNoUsableHostError NS_UNAVAILABLE;
  45. /**
  46. * SDK 内部错误
  47. */
  48. extern const int kQNSDKInteriorError;
  49. /**
  50. * 非预期的系统调用 错误
  51. */
  52. extern const int kQNUnexpectedSysCallError;