Understanding Structured Exception Handling


In this chapter you will learn how to handle runtime anomalies in your VB 2010 code through the use of structured exception handling (often cryptically abbreviated as SEH). Not only will you examine the VB 2010 keywords that allow you to handle such matters (Try, Catch, Throw, Finally), you will also come to understand the distinction between application-level and system-level exceptions, as well as the role of the System. Exception base class. This discussion will lead into the topic of building custom exceptions, and, finally, to a quick look at the exception-centric debugging tools of Visual Studio 2010.


Base Class Visual Studio Runtime Error Current Exception Message Property 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Andrew Troelsen, Vidya Vrat Agarwal 2010

Personalised recommendations