ab56a9bcf7
SVN-Revision: r240
42 lines
1.2 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|
|
} |