Chapter 12. Error Handling

OBJECTIVES

  • Compare error handling in Visual Basic .NET to that found in VB6

  • Learn to use Try/Catch blocks to handle runtime errors

  • Find out how to use Exception objects to determine what error has occurred

  • See how to throw exceptions back to procedure callers

The .NET Framework provides structured exception handling using the Try, Catch, Finally, and Throw keywords in VB .NET. This type of error handling has been available, in some fashion, in C++ for a number of years. With the release of the .NET Common Language Runtime (CLR), this type of error handling is available to all the .NET languages, including VB .NET.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.230.81