ExceptionManager.cs 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Muchinfo.MTPClient.CustomException
  6. {
  7. public class ExceptionManager
  8. {
  9. /// <summary>
  10. /// 未连接到服务器或连接服务器超时,请联系客服人员!
  11. /// </summary>
  12. public static readonly int ConnectTradeServerTimeOut = -60007;
  13. /// <summary>
  14. /// 未登录到一级服务的错误
  15. /// </summary>
  16. public static readonly int UnLoginError = 10001;
  17. /// <summary>
  18. /// 请求超时
  19. /// </summary>
  20. public static readonly int ReqeustTimeOutError = 10000;
  21. /// <summary>
  22. /// 客户端未知错误代码
  23. /// </summary>
  24. public static readonly int UnknownClientErrorCode = -999;
  25. /// <summary>
  26. /// 服务返回空错误代码
  27. /// </summary>
  28. public static readonly int UnknownServiceErrorCode = -998;
  29. /// <summary>
  30. /// 二级服务请求超时
  31. /// </summary>
  32. public static readonly int ServiceOutTimeErrorCode = -997;
  33. /// <summary>
  34. /// 二级服务请求超时
  35. /// </summary>
  36. public static readonly int AccountLoginOutErrorCode = -996;
  37. /// <summary>
  38. /// 无法连接服务器
  39. /// </summary>
  40. public static readonly int CanNotConnectServer = -995;
  41. /// <summary>
  42. /// 持仓金额超过最大允许持仓金额。
  43. /// </summary>
  44. public static readonly int AmountOverMaxAgreeAmout = -993;
  45. /// <summary>
  46. /// "获取用户树根出错!"
  47. /// </summary>
  48. public static readonly int GetUserPowerError = -992;
  49. /// <summary>
  50. /// 获取网络异常,无法查询用户信息资金信息出错。
  51. /// </summary>
  52. public static readonly int GetUserAccountError = -991;
  53. /// <summary>
  54. /// 获取网络异常,无法查询增量点差 。
  55. /// </summary>
  56. public static readonly int GetSubPtError = -990;
  57. /// <summary>
  58. /// 获取网络异常,无法查询用户风险率类型。
  59. /// </summary>
  60. public static readonly int GetRiskRateError = -989;
  61. /// <summary>
  62. /// 获取网络异常,无法查询用户基本信息。
  63. /// </summary>
  64. public static readonly int GetUserBaseInfoError = -988;
  65. /// <summary>
  66. /// 获取网络异常,无法查询用户资金信息。
  67. /// </summary>
  68. public static readonly int GetUserAmountInfoError = -987;
  69. /// <summary>
  70. /// 记录账号信息出错,文件被占用或用户无权限操作。
  71. /// </summary>
  72. public static readonly int SaveUseInfoError = -986;
  73. /// <summary>
  74. /// 读取账号信息出错,用户无权限操作。
  75. /// </summary>
  76. public static readonly int ReadUseInfoError = -985;
  77. /// <summary>
  78. /// 查询特别会员账号二级服务响应错误。
  79. /// </summary>
  80. public static readonly int SpecSecondRequetError = -984;
  81. /// <summary>
  82. /// 提交确认密码时二级服务响应错误。
  83. /// </summary>
  84. public static readonly int SignPWDRequetError = -983;
  85. /// <summary>
  86. /// 密码加密出错。
  87. /// </summary>
  88. public static readonly int EncryptError = -982;
  89. /// <summary>
  90. /// 服务链路已断开
  91. /// </summary>
  92. public static readonly int ServerDisConnectError = -981;
  93. /// <summary>
  94. /// 二级服务无响应内容
  95. /// </summary>
  96. public static readonly int SecondServerUnRequest = -980;
  97. /// <summary>
  98. /// 更新加密密钥出错。
  99. /// </summary>
  100. public static readonly int AlterKeyError = -979;
  101. /// <summary>
  102. /// 创建代理失败
  103. /// </summary>
  104. public static readonly int CreateProxyError = -978;
  105. /// <summary>
  106. /// 查询市场出错
  107. /// </summary>
  108. public static readonly int QueryMarketsError = -977;
  109. /// <summary>
  110. /// 查询商品出错
  111. /// </summary>
  112. public static readonly int QueryGoodsError = -976;
  113. /// <summary>
  114. /// 查询交易所出错
  115. /// </summary>
  116. public static readonly int QueryExchangeError = -975;
  117. /// <summary>
  118. /// 客户端不支持此类用户登录。
  119. /// </summary>
  120. public static readonly int UsrerTypeError = -974;
  121. /// <summary>
  122. /// 创建实时历史行情失败。
  123. /// </summary>
  124. public static readonly int CreateQuoteHistoryLinkError = -973;
  125. /// <summary>
  126. /// 未创建实时行情代理。
  127. /// </summary>
  128. public static readonly int RealTimeQuoteError = -972;
  129. /// <summary>
  130. /// 服务在队列等待发送超时。
  131. /// </summary>
  132. public static readonly int WaitToSendError = -971;
  133. /// <summary>
  134. /// 行情应用服务连接超时,请联系客服人员!
  135. /// </summary>
  136. public static readonly int QuoteDisConnectError = -959;
  137. /// <summary>
  138. /// 网络异常,请重新登录!
  139. /// </summary>
  140. public static readonly int UserLoginError = -958; //用户被踢下线
  141. /// <summary>
  142. /// 无法连接服务器,请联系客服人员!
  143. /// </summary>
  144. public static readonly int DisConnectServerError = -957;
  145. /// <summary>
  146. /// 登录超过尝试次数,系统将退出。
  147. /// </summary>
  148. public static readonly int LoginTimesError = -956;
  149. /// <summary>
  150. /// 认证服务地址未配置
  151. /// </summary>
  152. public static readonly int LoginServiceUnConfigError = -955;
  153. /// <summary>
  154. /// 认证服务地址连接错误
  155. /// </summary>
  156. public static readonly int LoginServiceAddressError = -954;
  157. /// <summary>
  158. /// 本机不支持交易端浏览网页,如需帮助请与管理员联系!
  159. /// </summary>
  160. public static readonly int WebKitNotSupportError = -951;
  161. /// <summary>
  162. /// 本机不支持交易系统打开浏览器,请复制地址到浏览器中打开。
  163. /// </summary>
  164. public static readonly int OpenIEError = -953;
  165. /// <summary>
  166. /// 等待服务端的交易结果超过30秒,请稍后确认交易结果
  167. /// </summary>
  168. public static readonly int OrderReqeustTimeOutError = -930;
  169. /// <summary>
  170. /// 该账号无相关的商品权限!
  171. /// </summary>
  172. public static readonly int TradeAccountNoGoodsPower = -952;
  173. /// <summary>
  174. /// 软件版本过低,请从官方网站下载新版本!
  175. /// </summary>
  176. public static readonly int ClientVersionUpdateError = 2001;
  177. /// <summary>
  178. /// 令牌已更新,请重新登录!
  179. /// </summary>
  180. public static readonly int CheckedTokenUpdateError = -60005;
  181. /// <summary>
  182. /// 网络异常,数据错误!
  183. /// </summary>
  184. public static readonly int NetWorkErrorDataError = -60008;
  185. }
  186. }