ADO Error Object

The ADO Error object contains details about data access errors pertaining to a single operation involving ADO. The properties of an Error object can be read to obtain specific details about each error.

The Error object does not support any methods or collections; however the Errors collection supported by other objects provides the standard Collection methods (Clear, and Delete). Error objects are automatically appended to the Errors collection by the OLE DB Provider when they occur. The following Error object properties are supported by the current version of the Microsoft® OLE DB Provider for AS/400 and VSAM:

Name Comment
Description property The text of the error alert that is returned based on the minor error code (specific to the OLE DB Provider for AS/400 and VSAM) contained in the OLE DB error object resulting from an error.
NativeError property A Long integer value of the error code returned by the OLE DB Provider for AS/400 and VSAM.
Number property The Long integer value of the OLE DB error constant.
Source property Identifies the object that raised the error.