C# Exception and Error Handling
56mAdvanced2024-03-14
Authors

Joe Marini
Senior Developer Advocate at Google, Developer
Course details
It’s just a fact that, despite all efforts to write the cleanest and most error-free programs, at some point you’re going to run into problems. Knowing how to properly handle error conditions and exceptions within your C# programs—before they affect user experience—is an absolute must. In this course, Joe Marini shows you how to work with C# exceptions and implement best-practice error handling protocols to make your applications resilient in the face of an unpredictable world.
Skills covered
C#AdvancedSoftware Development ToolsProgramming LanguagesMicrosoftSoftware Development
Concepts
0. Introduction
- 01 - Exceptional times call for exception handling
- 02 - Getting set up
1. Overview
- 03 - What are exceptions
2. Exception Basics
- 04 - Basic exception handling code
- 05 - The System.Exception class
- 06 - Built-in exceptions
- 07 - Handling multiple exceptions
- 08 - Throwing exceptions
- 09 - Challenge - Basics
- 10 - Solution - Basics
3. Advanced Exceptions
- 11 - Using try-catch-finally
- 12 - Exception filtering
- 13 - Creating custom exceptions
- 14 - Inner exceptions
- 15 - Exception handling best practices
- 16 - Challenge - Custom exceptions
- 17 - Solution - Custom exceptions
Conclusion
- 18 - Next steps