53GB

global error handling in asp.net core web api



global error handling in asp.net core web api

Catch errors globally in .net cores apis.
We usually use try/catch to log and catch exceptions, but we can do the same globally. We will create custom middleware to globally handle the exceptions.

Serilog tutorial: https://youtu.be/YGv_3-nKWcw

📎Source code: https://github.com/rd003/SerilogDemo/tree/GlobalErrorHandling

Hit the 👍 if you like the video.

……………..
Please share this video to your circle to support me.

Other links:
📢 C# full Course: https://www.youtube.com/watch?v=fA-zujqZlS0&list=PLP8UhDwXI7f_1lze_yKyG-51rS9WNAgMG&ab_channel=RavindraDevrani
📢 Blazor Courses: https://youtu.be/r65oJNybfQY
📢 Single video courses: https://youtube.com/playlist?list=PLP8UhDwXI7f-IFqwrx89QN1QIurYr94-p
📢 Angular tutorials and projects: https://bit.ly/3DitqDp
📢 dot net 6 tutorials and projects: https://bit.ly/3MSrXGX
📢 dot net core series: https://bit.ly/3TolF4i
📢 Learn projects from scratch: https://bit.ly/3zpn9ng
……………………………………………….
connect with me
👉 YouTube: https://youtube.com/@ravindradevrani
👉 Twitter: https://twitter.com/ravi_devrani
👉 GitHub: https://github.com/rd003
……………………………………
Become a supporter ❣️:
You can buy me a coffee 🍵 : https://www.buymeacoffee.com/ravindradevrani
……………………………………………………………………….
#dotnet7 #dotnetcore

Exit mobile version