您的位置:首页 > 编程语言 > ASP

Asp.net 全局错误处理

2013-03-25 11:18 246 查看
protected void Application_Error(object sender, EventArgs e)
{
Exception ex = this.Server.GetLastError().GetBaseException();
if (ex is ArgumentErrorException)
{
return;
}
LogHelper.CurrentLogger.Error("出现未预计的异常", ex);
this.Response.Redirect("/Error.aspx");
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: