HelpContext Property
HelpFile Object
Number Property
Source Property
PROPERTY: Error::Description
string =
errorobject.
Description
The
Description
property returns a string that is a brief textual description of the error. This is the default property for the
Error
object. Since both the provider and ADO can generate errors, either may be the source of the error.
It is the responsibility of the provider to pass error information, including the description string, to ADO. When an error does occur, it is the responsibility of ADO to create an
Error
object, which contains all of the error information, and to add that object to the
Errors Collection
.
Code (VBScript):
For Each objError in objConnection
ErrorInfo = "Description; " & objError.
Description
& VBCRLF &_
"Help Context: " & objError.HelpContext & VBCRLF &_
"Help File: " & objError.HelpFile & VBCRLF &_
"Native Error: " & objError.NativeError & VBCRLF &_
"Number: " & objError.Number & VBCRLF &_
"Source: " & objError.Source & VBCRLF &_
"SQL State: " & objError.SQLState & VBCRLF
Response.Write ErrorInfo
Next
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information