IExceptionFilter
实现一个处理异常的方法:
public interface IExceptionFilter { void OnException(ExceptionContext filterContext); }