Global Exception Handling in ASP.NET Core Web API (.NET 8)

Опубликовано: 29 Сентябрь 2024
на канале: Code Maze
7,851
166

►► Master Web API development Best Practices: https://bit.ly/3TnqoFQ
►► Build great web apps in Blazor WebAssembly: https://bit.ly/437g87T
►► Support us on Patreon and get the source code:   / codemaze  

In this video, we are going to see three different ways that we can use to handle our exceptions globally in the ASP.NET Core application. I will show you how to use the built-in exception middleware and the custom-created middleware, and finally, we will use a new .NET 8 interface called IExceptionHandler.
I’ll also show you how to customize error responses that you can send back to your clients.

LINKS MENTIONED IN THE VIDEO
►► Onion Architecture:    • Onion Architecture in ASP.NET Core  
►► Pagination Video:    • Paging in ASP.NET Core Web API  

FOLLOW US ON SOCIAL MEDIA!
►►   / marinko-spasojevic  
►►   / codemazeblog  
►►   / codemazeblog