Unstructured Exception Handling in Visual Basic
This documentation is archived and is not being maintained.

Unstructured Exception Handling in Visual Basic 

Topics in this section discuss unstructured exception handling, the Err object, and how to retrieve information from errors.

In This Section

Unstructured Exception Handling Overview

Discusses unstructured exception handling and how to use the Err object.

Err Object in Unstructured Exception Handling

Describes the Err Object and its properties.

How to: Retrieve Information from an Error Object

Demonstrates how to get information from an Err object's properties.

Trappable Errors in Visual Basic

Lists trappable errors.

Reference

Err Object (Visual Basic)

Describes the Err object and lists its members.

Description Property (Err Object)

Describes the Err object's Description property and how to use it.

HelpContext Property (Err Object)

Describes the Err object's HelpContext property and how to use it.

HelpFile Property (Err Object)

Describes the Err object's Helpfile property and how to use it.

LastDllError Property (Err Object)

Describes the Err object's LastDLLError property and how to use it.

Number Property (Err Object)

Describes the Err object's Number property and how to use it.

Source Property (Err Object)

Describes the Err object's Source property and how to use it.

On Error Statement (Visual Basic)

Describes the On Error statement and how to use it.

Resume Statement

Describes the Resume statement and how to use it.

Exit Statement (Visual Basic)

Describes the Exit statement and how to use it.

Related Sections

Choosing When to Use Structured and Unstructured Exception Handling

Describes the advantages and disadvantages of structured and unstructured exception handling.

Types of Errors

Lists types of errors encountered in code.

Show:
© 2016 Microsoft