你的位置: 码友网首页 / 资讯源列表 / Global Error Handling in ASP.NET Core MVC

关于[Global Error Handling in ASP.NET Core MVC]的摘要:

When generating a new MVC app the ExceptionHandler middleware is provided by default. This will catch any unhandled exceptions within your application and allow you to redirect to a specified route if you so choose. But what about other non-success status codes? Errors such as 404s will not be captured by this middleware as no exception was thrown.

原文地址: https://codedaze.io/global-error-handling-aspnet-core-mvc/

收录时间: 2018-08-07 浏览量: 36 分类: ASP.NET Core

| 0 收藏 | 0