Files
lserp_cs_6.0/插件库/Lskj.AttachStart/Service/LSErrorManage.cs
T
cyf ab56a9bcf7 基线 SVN r240
SVN-Revision: r240
2025-02-06 06:46:06 +00:00

42 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using Lskj.Util;
namespace Lskj.AttachStart.Service
{
internal static class LSErrorManage
{
private static Dictionary<int, string> m_errList = new Dictionary<int, string>();
public static string getDes(int dwErrId)
{
try
{
return m_errList[dwErrId];
}
catch (Exception ex)
{
LogHelper.Instance.WriteError(ex);
}
return "";
}
public static void init()
{
try
{
m_errList.Add(ErrorType.SUCCESS, "成功");
m_errList.Add(ErrorType.FILE_EXIST, "文件已经存在");
m_errList.Add(ErrorType.DIRECTORY_EXIST, "文件夹已经存在");
m_errList.Add(ErrorType.FILE_NOT_EXIST, "文件不存在");
m_errList.Add(ErrorType.DIRECTORY_NOT_EXIST, "文件夹不存在");
m_errList.Add(ErrorType.FAIL, "失败");
m_errList.Add(ErrorType.UNKNOWN, "未知错误");
}
catch (Exception ex)
{
LogHelper.Instance.WriteError(ex);
}
}
}
}