Lesson 8: Add Exception Handling to Minimal Web API Calls
In this lesson you learn to add global exception handling to your Minimal Web API project. You see how to setup custom exception handling, handle status codes, and log exceptions.
Content
Built-In Exception Handling 00:00
DEMO: Create an Exception 00:57
DEMO: View Built-In Exception Handling 01:24
DEMO: Exception Router Class 02:08
DEMO: Development and Production Exception Handling 05:40
DEMO: Different Profiles for Development and Production 07:31
DEMO: Handling 404 Status Codes 09:12
DEMO: Log Exceptions Into a Different File 11:20
DEMO Log Exceptions in a Catch Block 13:26
Lesson Summary 16:37
You can get all the samples and hands-on labs for this course at https://www.pdsa.com/YouTube.
If you are interested in generating Minimal Web API projects, check out my FREE PDSC Developer Utilities at https://www.pdsa.com/Utilities.
#minimalwebapi #webapi #log #exception #exceptionhandling #csharp #development #programming #dotnet #dotnetcore #dotnet6 #dotnet7 #dotnet8 #pauldsheriff #pluralsight #youtube
Paul.About()
Hello, my name is Paul D. Sheriff and I have a passion for teaching. I have been training developers for over 35 years through books, videos, article, blog posts, and international conferences and user groups.
Paul.Contact()
Website: https://www.pdsa.com
Email: [email protected]
LinkedIn: / paulsheriff
Blog: https://blogs.pdsa.com/
Pluralsight: https://app.pluralsight.com/profile/a...
YouTube Channel: @pauldsheriff
Watch video Lesson 8: Add Exception Handling to Minimal Web API Calls online without registration, duration hours minute second in high quality. This video was added by user Paul D. Sheriff 12 January 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 108 once and liked it 2 people.