namespace NetWorkMessage
{
    public static class NetErrorCode
    {
        // 20000 以内是 SocketError 内置的

        public const int Success = 0;
        
        #region 框架 100000 起
        /// <summary>
        /// RPC id 添加失败
        /// </summary>
        public const int ERR_RpcIdAddFail = 100000;

        public const int ERR_NotFoundActor = 100001;
        
        public const int ERR_Timeout = 100002;
        
        /// <summary>
        /// 链接已经断开
        /// </summary>
        public const int ERR_PeerDisconnect = 100003;
        
        /// <summary>
        /// TChannel 接收错误
        /// </summary>
        public const int ERR_TChannelRecvError = 100004;

        /// <summary>
        /// 解析包错误
        /// </summary>
        public const int ERR_PacketParserError = 100005;

        /// <summary>
        /// Socket 错误
        /// </summary>
        public const int ERR_SocketError = 100006;

        /// <summary>
        /// 发送消息没有找到Channel
        /// </summary>
        public const int ERR_SendMessageNotFoundTChannel = 100007;

        /// <summary>
        /// RPC 调用报错
        /// </summary>
        public const int ERR_RPCFail = 100008;

        /// <summary>
        /// 没有找到处理器
        /// </summary>
        public const int ERR_NotFoundHandle = 100009;

        /// <summary>
        /// 没找到ActorSession
        /// </summary>
        public const int ERR_NotFoundActorSession = 100010;

        /// <summary>
        /// 网络连接断开
        /// </summary>
        public const int ERR_ActorSessionDisconnect = 100011;
        
        #endregion

        #region 业务 200000 起

        public const int ERR_BindUserNotFondSession = 200001;
        

        #endregion
    }
}