Open Directory Site ADO Tutorials

ASP | XML | VBScript | JavaScript | ADO | CSS | XMLDOM | PHP | Operating Systems

Home >> ADO >> ADO Error object

ADO Error object

 

Error Object

The Error object contains details about data access errors that have been generated during a single operation.

ADO generates one Error object for each error. Each Error object contains details of the specific error, and are stored in the Errors collection. To access the errors, you must refer to a specific connection.

To loop through the Errors collection:

For Each ErrObj in ConnObj

Response.Write(ErrObj.Description & "<br />")

Next

Syntax

objectname.property

Properties

Property Description

Description Returns an error description

HelpContext Returns a context ID from a help file

HelpFile Returns the full path to a help file

NativeError Returns an error code

Number Returns a unique number that identifies an Error object

Source Returns the name of an object or application that generated the error

SQLState Returns a SQL error code

Cheap Web Hosting Articles - Web Site Design & Web Hosting Tutorials - Domain Hosting