摘要: 定义异常捕获类:[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, Inherited = true, AllowMultiple = true)] public class ExceptionAttribute : FilterAttribute, IExceptionFilter { public virtual void OnException(ExceptionContext filterContext) { string message = s... 阅读全文
posted @ 2013-08-04 16:24 南阳·源 阅读(3844) 评论(1) 推荐(0) 编辑