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
Introduction
- Exceptional times call for exception handling
- Getting set up
Overview
- What are exceptions
Exception Basics
- Basic exception handling code
- The System.Exception class
- Built-in exceptions
- Handling multiple exceptions
- Throwing exceptions
- Challenge - Basics
- Solution - Basics
Advanced Exceptions
- Using try-catch-finally
- Exception filtering
- Creating custom exceptions
- Inner exceptions
- Exception handling best practices
- Challenge - Custom exceptions
- Solution - Custom exceptions
Conclusion
- Next steps