12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- namespace KYFramework.Network
- {
- public static class ErrorCode
- {
- public const int ERR_Success = 0;
-
-
-
- public const int ERR_MyErrorCode = 100000;
- public const int ERR_PacketParserError = 100005;
-
- public const int ERR_PeerDisconnect = 102008;
- public const int ERR_SocketCantSend = 102009;
- public const int ERR_SocketError = 102010;
- public const int ERR_RpcFail = 102001;
-
-
- public const int ERR_Exception = 200000;
- public const int ERR_NotFoundActor = 200002;
- public const int ERR_AccountOrPasswordError = 200102;
-
- public static bool IsRpcNeedThrowException(int error)
- {
- if (error == 0)
- {
- return false;
- }
- if (error > ERR_Exception)
- {
- return false;
- }
- return true;
- }
- }
- }
|