C# Exception Handling


This entry is part 1 of 1 in the series C# Exception Handling
  • C# Exception Handling

Exception handling is an advanced topic because there the things you need to understand in C# before you dive into exception handling. However, exception handling in C# is not too difficult.

One thing you need to understand is C# types and type conversion. You will also need to know a little bit about the debugger.

During development you will be doing everything you can to find and fix bugs. However, you know that you cannot be 100% sure that you found all of the bugs and you don’t want your program to crash, but instead present an error, preferably a user-friendly error. Handling those errors (exceptions) is what this post is about. To handle exceptions we use try catch blocks.