You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
548 B
C#
25 lines
548 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
namespace DSWeb.Areas
|
|
{
|
|
public class ExceptionAttribute
|
|
{
|
|
public static Queue<Exception> ExecptionQueue = new Queue<Exception>();
|
|
/// <summary>
|
|
/// 捕获异常数据
|
|
/// </summary>
|
|
/// <param name="ex"></param>
|
|
public static void AddException ( Exception ex )
|
|
{
|
|
//写到队列
|
|
ExecptionQueue.Enqueue(ex);
|
|
|
|
|
|
}
|
|
}
|
|
} |