In this video we will be going to be discussion Global Error Handling in .NET 6 Application why do we need it and how can we implement it in our .NET 6 Web API.
Support me on Patreon to access the source code:
https://www.patreon.com/mohamadlawand
00:00 Intro
02:17 Creating the App
03:47 Installing Nuget Packages
07:26 Creating the Models
08:40 Creating the Application DbContext
12:46 Updating the Program.cs
14:42 Db Migration
16:39 Creating the services
27:49 Creating the Controller
35:49 Creating the Exceptions
40:23 Creating the Global Exception Handler Middleware
01:05:00 Creating the Middleware Builder Extension
01:07:49 Updating the Program.cs
01:08:58 Testing our code
Create .NET 6 Web API
https://youtu.be/wtFs4356xp4
Middlewares
https://youtu.be/vMkTQgAL6w0
Dependency Injections
https://youtu.be/ORAfsRukNc4
Let us connect:
π My website - https://mohamadlawand.com
πΈ Instagram - https://www.instagram.com/mohamadlawand087/
π¦ Twitter - https://twitter.com/moe23
β― Github - https://github.com/mohamadlawand087
π« LinkedIn - https://www.linkedin.com/in/mlawand
π₯ LinkTree - https://linktr.ee/mohamadlawand
Gear I use (affiliate link): https://amzn.to/3EbT8Jw
Support my work:
https://www.patreon.com/mohamadlawand
https://www.buymeacoffee.com/mohamadlawand
Hire Me:
https://transactions.sendowl.com/products/78999951/625477F1/view
WHO AM I:
I'm Mohamad, a Enterprise Architect working in Manchester, UK. I make videos about web, cloud, desktop and mobile development.
#WebAPI #error #dotnet