我想重定向到有关异常的其他视图。我有以下代码 OnException。但是我怎样才能改变视图呢?
protected override void OnException(ExceptionContext filterContext)
{ // Let other exceptions just go unhandled
if (filterContext.Exception is InvalidOperationException)
{ // Switch to an error view ...
}
}
如何切换到错误视图?