cs/appException.cs

(完整代码) 652B

using System; 

namespace OI
{
	/// <summary>
	/// appException 的摘要说明。
	/// </summary>
	public class AppException:System.Exception 
	{
		public AppException()
		{//下载于51aspx.com
			OI.Modules.ErrorLog.WriteLog("发生一个异常",System.Diagnostics.EventLogEntryType.Error);
		}
		public AppException(string Message)
		{//下载于51aspx.com
			OI.Modules.ErrorLog.WriteLog(Message);
		}
		public AppException(string Message, Exception innerException)
		{
			OI.Modules.ErrorLog.WriteLog(Message);
			if(innerException!=null)
				OI.Modules.ErrorLog.WriteLog(innerException.Message+"\n\r"+innerException.StackTrace);
		}
	}
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。