Exceptions are something inevitable in any application however well the codebase is. This can usually occur due to external factors as well, like network issues and so on. In this article, we will learn about Global Exception Handling in ASP. NET Core applications.
We will see various approaches for handling exceptions in a better way.
Getting started with Exception Handling in ASP .NET Core
Default Exception Handling Middleware
Custom Middleware – Global Exception Handling
Read the entire article here – https://codewithmukesh.com/blog/global-exception-handling-in-aspnet-core/