Global Exception Handling | Ultimate ASP.NET Web API Tutorial For Beginners

preview_player
Показать описание
In this video we will discuss
1. How to create exception handling middleware
2. How to set a standard return type for API exceptions

___________________________________________________________________

I am a Software Engineer and Instructor. I can provide professional development services or private code coaching sessions to help you to accomplish your professional or personal IT goals.

Check out my content on Social Media


Check out some free courses below:
Microsoft SQL Server 2017 for Everyone! - Database Development Course

PHP Bootstrap 4, Heroku and MySQL Course

PHP Development with Bootstrap, GitHub and Heroku

Modern PHP Web Development with MySQL, GitHub and Bootstrap 4

C# - Basics Uncovered

Enterprise C# Winforms Application Development

Introduction To Website Technologies
Рекомендации по теме
Комментарии
Автор

What if the client is accepting non json content types ? Can you guide how to check that and return error response in the required format ?

iosaroj
Автор

Awesome tutorial. Can I use this approach for. Netcore 3.1?

davidemmanuel
Автор

Can I save exceptions into a database rather than a file?

volkov
Автор

This is wrong. There is a RFC (RFC 7807) for ProblemDetails object which specifies the "Error" object which you are returning in a non-standardized way.

SKglitches