| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace Muchinfo.MTPClient.CustomException
- {
- public class ExceptionManager
- {
- /// <summary>
- /// 未连接到服务器或连接服务器超时,请联系客服人员!
- /// </summary>
- public static readonly int ConnectTradeServerTimeOut = -60007;
- /// <summary>
- /// 未登录到一级服务的错误
- /// </summary>
- public static readonly int UnLoginError = 10001;
- /// <summary>
- /// 请求超时
- /// </summary>
- public static readonly int ReqeustTimeOutError = 10000;
- /// <summary>
- /// 客户端未知错误代码
- /// </summary>
- public static readonly int UnknownClientErrorCode = -999;
- /// <summary>
- /// 服务返回空错误代码
- /// </summary>
- public static readonly int UnknownServiceErrorCode = -998;
- /// <summary>
- /// 二级服务请求超时
- /// </summary>
- public static readonly int ServiceOutTimeErrorCode = -997;
- /// <summary>
- /// 二级服务请求超时
- /// </summary>
- public static readonly int AccountLoginOutErrorCode = -996;
- /// <summary>
- /// 无法连接服务器
- /// </summary>
- public static readonly int CanNotConnectServer = -995;
- /// <summary>
- /// 持仓金额超过最大允许持仓金额。
- /// </summary>
- public static readonly int AmountOverMaxAgreeAmout = -993;
- /// <summary>
- /// "获取用户树根出错!"
- /// </summary>
- public static readonly int GetUserPowerError = -992;
- /// <summary>
- /// 获取网络异常,无法查询用户信息资金信息出错。
- /// </summary>
- public static readonly int GetUserAccountError = -991;
- /// <summary>
- /// 获取网络异常,无法查询增量点差 。
- /// </summary>
- public static readonly int GetSubPtError = -990;
- /// <summary>
- /// 获取网络异常,无法查询用户风险率类型。
- /// </summary>
- public static readonly int GetRiskRateError = -989;
- /// <summary>
- /// 获取网络异常,无法查询用户基本信息。
- /// </summary>
- public static readonly int GetUserBaseInfoError = -988;
- /// <summary>
- /// 获取网络异常,无法查询用户资金信息。
- /// </summary>
- public static readonly int GetUserAmountInfoError = -987;
- /// <summary>
- /// 记录账号信息出错,文件被占用或用户无权限操作。
- /// </summary>
- public static readonly int SaveUseInfoError = -986;
- /// <summary>
- /// 读取账号信息出错,用户无权限操作。
- /// </summary>
- public static readonly int ReadUseInfoError = -985;
- /// <summary>
- /// 查询特别会员账号二级服务响应错误。
- /// </summary>
- public static readonly int SpecSecondRequetError = -984;
- /// <summary>
- /// 提交确认密码时二级服务响应错误。
- /// </summary>
- public static readonly int SignPWDRequetError = -983;
- /// <summary>
- /// 密码加密出错。
- /// </summary>
- public static readonly int EncryptError = -982;
- /// <summary>
- /// 服务链路已断开
- /// </summary>
- public static readonly int ServerDisConnectError = -981;
- /// <summary>
- /// 二级服务无响应内容
- /// </summary>
- public static readonly int SecondServerUnRequest = -980;
- /// <summary>
- /// 更新加密密钥出错。
- /// </summary>
- public static readonly int AlterKeyError = -979;
- /// <summary>
- /// 创建代理失败
- /// </summary>
- public static readonly int CreateProxyError = -978;
- /// <summary>
- /// 查询市场出错
- /// </summary>
- public static readonly int QueryMarketsError = -977;
- /// <summary>
- /// 查询商品出错
- /// </summary>
- public static readonly int QueryGoodsError = -976;
- /// <summary>
- /// 查询交易所出错
- /// </summary>
- public static readonly int QueryExchangeError = -975;
- /// <summary>
- /// 客户端不支持此类用户登录。
- /// </summary>
- public static readonly int UsrerTypeError = -974;
- /// <summary>
- /// 创建实时历史行情失败。
- /// </summary>
- public static readonly int CreateQuoteHistoryLinkError = -973;
- /// <summary>
- /// 未创建实时行情代理。
- /// </summary>
- public static readonly int RealTimeQuoteError = -972;
- /// <summary>
- /// 服务在队列等待发送超时。
- /// </summary>
- public static readonly int WaitToSendError = -971;
- /// <summary>
- /// 行情应用服务连接超时,请联系客服人员!
- /// </summary>
- public static readonly int QuoteDisConnectError = -959;
- /// <summary>
- /// 网络异常,请重新登录!
- /// </summary>
- public static readonly int UserLoginError = -958; //用户被踢下线
- /// <summary>
- /// 无法连接服务器,请联系客服人员!
- /// </summary>
- public static readonly int DisConnectServerError = -957;
- /// <summary>
- /// 登录超过尝试次数,系统将退出。
- /// </summary>
- public static readonly int LoginTimesError = -956;
- /// <summary>
- /// 认证服务地址未配置
- /// </summary>
- public static readonly int LoginServiceUnConfigError = -955;
- /// <summary>
- /// 认证服务地址连接错误
- /// </summary>
- public static readonly int LoginServiceAddressError = -954;
- /// <summary>
- /// 本机不支持交易端浏览网页,如需帮助请与管理员联系!
- /// </summary>
- public static readonly int WebKitNotSupportError = -951;
- /// <summary>
- /// 本机不支持交易系统打开浏览器,请复制地址到浏览器中打开。
- /// </summary>
- public static readonly int OpenIEError = -953;
- /// <summary>
- /// 等待服务端的交易结果超过30秒,请稍后确认交易结果
- /// </summary>
- public static readonly int OrderReqeustTimeOutError = -930;
- /// <summary>
- /// 该账号无相关的商品权限!
- /// </summary>
- public static readonly int TradeAccountNoGoodsPower = -952;
- /// <summary>
- /// 软件版本过低,请从官方网站下载新版本!
- /// </summary>
- public static readonly int ClientVersionUpdateError = 2001;
- /// <summary>
- /// 令牌已更新,请重新登录!
- /// </summary>
- public static readonly int CheckedTokenUpdateError = -60005;
- /// <summary>
- /// 网络异常,数据错误!
- /// </summary>
- public static readonly int NetWorkErrorDataError = -60008;
- }
- }
|