Simple play icon Course
Skills

Debugging and Error Handling in ASP.NET Core Web API

by Nertil Poci

Learn how to properly handle errors in .NET Web API projects. This course will teach you how to apply different error handling techniques for different scenarios in real applications to create a rich consumer experience.

What you'll learn

Working on large-scale APIs that consume a multitude of internal and external services can be complicated and error-prone since there are multiple points of failure that can originate from services of libraries that you have no control over. In this course, Debugging and Error Handling in ASP.NET Core Web API, you’ll learn how to leverage error handling to control your application flow in your .NET Core Web APIs. First, you’ll explore how to use the built-in features of .NET Web API projects to convert errors from raw exceptions that might contain sensitive information into meaningful error codes and messages that can be displayed to consuming applications. Next, you’ll discover how to use error handling to control the flow of your application by converting errors into actionable events that can be taken rather than terminating the request. Finally, you'll learn how to create a custom error handling middleware that can parse known and unknown errors to handle any scenario and produce meaningful error codes. When you’re finished with this course, you’ll have the skills and knowledge error handling features of .NET needed to build resilient Web APIs.

About the author

Nertil is a freelance software architect working with different companies around the globe to help them bring their products to market. He has a master’s degree in computer science with a focus in software architecture. One of his main passions is discovering new tools and libraries that exists out there. Knowing what tools are available building apps much easier and gives you the confidence you need when challenging task comes along. Nertil enjoys building practical open source apps in his spar... more

Ready to upskill? Get started