Error Handling or Exception Handling

In writing code, error handling is important, and it is often overlooked when studying in college.  This video shows how error handling works in C#, but doesn't show you good examples of how to design error handling.  The examples are simple examples to show how the try,catch,finally works in a method, and how it works in a class object call stack. 

Exception handling in managed code does not consume resources and can help your code to function more efficently and your customers will appreciate it.

The video shows you how the Exception Handling as well how to instantiate classes.

The code that is used is quite simple.

You can download the code from Codeplex, currently only in C#, I will post the equivalent VB at sometime in the future.  The concepts are similar for both languages.

Comments (0)

Skip to main content