ErrorCode.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. namespace ET
  2. {
  3. public static partial class ErrorCode
  4. {
  5. public const int ERR_Success = 0;
  6. // 1-11004 是SocketError请看SocketError定义
  7. //-----------------------------------
  8. // 100000-109999是Core层的错误
  9. // 110000以下的错误请看ErrorCore.cs
  10. // 这里配置逻辑层的错误码
  11. // 110000 - 200000是抛异常的错误
  12. // 200001以上不抛异常
  13. /** 登陆错误 **/
  14. public const int ERR_LoginError = 200002;
  15. /** 重复请求 **/
  16. public const int ERR_RequestRepeatedly = 200003;
  17. /** 请输入用户名和密码 **/
  18. public const int ERR_UserNameOrPasswordIsNull = 200004;
  19. /** 用户名或密码格式错误 **/
  20. public const int ERR_UserNameOrPasswordFormatError = 200005;
  21. /** 用户名或密码错误 **/
  22. public const int ERR_UserNameOrPasswordError = 200006;
  23. /** 已被永久封禁 **/
  24. public const int ERR_UserPermanentBan = 200007;
  25. /** 已被限时封禁 **/
  26. public const int ERR_UserBanTime = 200008;
  27. public enum EnterMap
  28. {
  29. MapNotExist = 210001,
  30. BattleSvrErr,
  31. }
  32. }
  33. }