Lesson 8: Add Exception Handling to MVC Web API Calls

Published: 12 January 2024
on channel: Paul D. Sheriff
41
5

Lesson 8: Add Exception Handling to MVC Web API Calls

Lesson Description
In this lesson you learn to add global exception handling to your MVC Web API project. You see how to setup custom exception handling, handle status codes, and log exceptions.

Content
Lesson Objectives 00:00
The Built-In ASP.NET Unhandled Exception Handler 00:27
DEMO: Create Your Own Exception Controller 00:50
DEMO: View The Built-In Exception Handler Message 01:33
DEMO: Create an Exception Controller 02:24
DEMO: Development vs Production Exception Handling 04:39
DEMO: Development and Production Profiles in Visual Studio 06:20
DEMO: Handling a 404 Status Code 08:21
DEMO: Log Exceptions and Info Messages to Different Files 11:48
DEMO: Log Exceptions in your Catch Blocks 13:15
Lesson Summary 16:00

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 MVC Web API applications check out my FREE PDSC Developer Utilities at https://www.pdsa.com/Utilities.

#mvc #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 MVC 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 41 once and liked it 5 people.