Visual Basic has included error handling since its initial release through the On Error statement. Although often derided by developers, this mechanism did effectively catch and process all errors when used properly. Visual Basic 2005 still includes this error-handling methodology, but it also includes structured error handling, new with .NET. This chapter considers this new error-processing system, comprised of the TRy…Catch…Finally statement and System.Exception-derived error objects. |