ASP.NET MVC filters can be defined once and used in multiple places. Because ASP.NET MVC also provides the ability to create custom filters, it's good practice to learn how to make them and use them ...
This article talks about the Developer Exception Page Middleware in ASP.NET Core MVC and how we can handle exceptions in both development and production environments in ASP.NET Core MVC applications.