ErrorCode.cs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. namespace ET
  2. {
  3. /// <summary>
  4. /// 1-11004 是SocketError请看SocketError定义
  5. ///-----------------------------------
  6. /// 100000-109999是Core层的错误
  7. /// 110000以下的错误请看ErrorCore.cs
  8. /// 这里配置逻辑层的错误码
  9. /// 110000 - 200000是抛异常的错误
  10. /// 200001以上不抛异常
  11. /// </summary>
  12. public static partial class ErrorCode
  13. {
  14. public const int ERR_Success = 0;
  15. /** 系统错误 **/
  16. public const int ERR_SystemError = 200002;
  17. /** 操作错误 **/
  18. public const int ERR_OperationError = 200003;
  19. /** 参数错误 **/
  20. public const int ERR_ParameterError = 200004;
  21. /** 登陆错误 **/
  22. public const int ERR_LoginError = 200005;
  23. /** 重复请求 **/
  24. public const int ERR_RequestRepeatedly = 200006;
  25. /** 请输入用户名和密码 **/
  26. public const int ERR_UserNameOrPasswordIsNull = 200007;
  27. /** 用户名或密码格式错误 **/
  28. public const int ERR_UserNameOrPasswordFormatError = 200008;
  29. /** 用户名或密码错误 **/
  30. public const int ERR_UserNameOrPasswordError = 200009;
  31. /** 已被永久封禁 **/
  32. public const int ERR_UserPermanentBan = 200010;
  33. /** 已被限时封禁 **/
  34. public const int ERR_UserBanTime = 200011;
  35. /** 请输入角色名 **/
  36. public const int ERR_PlayerNameIsNull = 200012;
  37. /** 该职业有误 **/
  38. public const int ERR_ProNotProper = 200013;
  39. /** 该性别有误 **/
  40. public const int ERR_SexNotProper = 200014;
  41. /** 创角失败 **/
  42. public const int ERR_CreatePlayerError = 200015;
  43. /** 该角色已经绑定 **/
  44. public const int ERR_PlayerIdIsBind = 200016;
  45. /** 选角出错 **/
  46. public const int ERR_BindPlayerError = 200017;
  47. /** 操作过快,请稍后重试 **/
  48. public const int ERR_OperationToFast = 200018;
  49. /** 场景不存在 **/
  50. public const int ERR_EnterMapError = 200019;
  51. /** 配置错误 **/
  52. public const int ERR_ConfigError = 200020;
  53. /** 账号已在其他地方登录 **/
  54. public const int ERR_AccountAlreadyLoggedInElsewhere = 200021;
  55. /** 角色已在其他地方登录 **/
  56. public const int ERR_PlayerAlreadyLoggedInElsewhere = 200022;
  57. /** 创建单位玩家有误 **/
  58. public const int ERR_CreateUnitPlayerError = 200023;
  59. public enum EnterMap
  60. {
  61. MapNotExist = 210001,
  62. BattleSvrErr,
  63. }
  64. }
  65. }