Global Exception Handling in C# .NET

4 months ago
6

Safely throw exceptions and return them nicely formatted to the API consumer. Demonstration in a C# .NET 7 Web API.

In next video we'll finish the validation exception handling: https://youtu.be/jSmKB6Af-aE

Source code: https://www.patreon.com/posts/global-exception-88565660?utm_medium=clipboard_copy&utm_source=copyLink&utm_campaign=postshare_creator&utm_content=join_link

If you found this video helpful, like & subscribe, that means a lot to me!

00:00 Intro
01:06 Default behavior
03:30 ActionResult
04:43 Local handling
05:20 Custom exceptions
09:50 Global Exception Filter
20:00 Recap
21:20 Outro

#dotnet #csharp #webapi #serilog #logging #monitoring #api #webdevelopment #fullstack #fullstacksoftwareengineering #backend #docker #azure #containerization #devops #cloud #microsoft #linux #entityframework #identityframework #mssqlserver #mssql #cleanarchitecture #authentication #api #development #local #web #fullstack #webdevelopment #authorization #jwt #bearer #cqrs #mediatr #webapi #cors #http #stateless #webscraping #workers #migration

Loading comments...