📄 appexception.cs
字号:
using System;
namespace RWSB
{
/// <summary>
/// appException 的摘要说明。
/// </summary>
public class AppException:System.Exception
{
public AppException()
{
RWSB.Modules.ErrorLog.WriteLog("发生一个异常",System.Diagnostics.EventLogEntryType.Error);
}
public AppException(string Message)
{
RWSB.Modules.ErrorLog.WriteLog(Message);
}
public AppException(string Message, Exception innerException)
{
RWSB.Modules.ErrorLog.WriteLog(Message);
if(innerException!=null)
RWSB.Modules.ErrorLog.WriteLog(innerException.Message+"\n\r"+innerException.StackTrace);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -