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.
Get ASP.NET Developer's JumpStart now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.