?? errormessagehelper.cs
字號:
using System;
using System.Collections.Generic;
using System.Text;
namespace JeasonZhao.Sms.SGIP
{
public class ErrorMessageHelper
{
private ErrorMessageHelper()
{
}
public static string GetMsg(ErrorCodes err)
{
return GetMsg((uint)err);
}
public static string GetMsg(uint nErrorCode)
{
switch (nErrorCode)
{
case 0:
return "無錯誤,命令正確接收";
case 1:
return "非法登錄,如登錄名、口令出錯、登錄名與口令不符等。";
case 2:
return "重復登錄,如在同一TCP/IP連接中連續兩次以上請求登錄。";
case 3:
return "連接過多,指單個節點要求同時建立的連接數過多。";
case 4:
return "登錄類型錯,指bind命令中的logintype字段出錯。";
case 5:
return "參數格式錯,指命令中參數值與參數類型不符或與協議規定的范圍不符。";
case 6:
return "非法手機號碼,協議中所有手機號碼字段出現非86130號碼或手機號碼前未加“86”時都應報錯。";
case 7:
return "消息ID錯";
case 8:
return "信息長度錯";
case 9:
return "非法序列號,包括序列號重復、序列號格式錯誤等";
case 10:
return "非法操作GNS";
case 11:
return "節點忙,指本節點存儲隊列滿或其他原因,暫時不能提供服務的情況";
case 21:
return "目的地址不可達,指路由表存在路由且消息路由正確但被路由的節點暫時不能提供服務的情況";
case 22:
return "路由錯,指路由表存在路由但消息路由出錯的情況,如轉錯SMG等";
case 23:
return "路由不存在,指消息路由的節點在路由表中不存在";
case 24:
return "計費號碼無效,鑒權不成功時反饋的錯誤信息";
case 25:
return "用戶不能通信(如不在服務區、未開機等情況)";
case 26:
return "手機內存不足";
case 27:
return "手機不支持短消息";
case 28:
return "手機接收短消息出現錯誤";
case 29:
return "不知道的用戶";
case 30:
return "不提供此功能";
case 31:
return "非法設備";
case 32:
return "系統失敗";
case 33:
return "短信中心隊列滿";
default:
return "其它其它錯誤碼(待定義)";
}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -