📄 showexception.cs
字号:
using System;
using System.Web;
using Club.Framework.Configuration;
namespace Club.Framework
{
/// <summary>
/// Exception 的摘要说明。
/// </summary>
public class ShowException:ApplicationException
{
/// <summary>
/// 异常触发过程
/// </summary>
public ShowException(string message,string backUrl)
{
HttpContext.Current.Response.Redirect(Globals.GetWebPath(Config.ShowMessage)+"?Url="+backUrl+"&Message="+message,true);
}
public ShowException(string message)
{
HttpContext.Current.Response.Redirect(Globals.GetWebPath(Config.ShowMessage)+"?Url="+HttpContext.Current.Request.RawUrl+"&Message="+message,true);
}
public ShowException(string message,bool isClose)
{
if(isClose)
{
HttpContext.Current.Response.Redirect(Globals.GetWebPath(Config.ShowMessage)+"?Message="+message,true);
}
else
{
HttpContext.Current.Response.Redirect(Globals.GetWebPath(Config.ShowMessage)+"?Url="+HttpContext.Current.Request.RawUrl+"&Message="+message,true);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -