当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO Description 属性

ADO
ADO DataTypes
ADO 摘要
ADO 实例

ADO Description 属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 416 ::
收藏到网摘: n/a

The Description property returns a string that contains a description of the error.
Description属性的作用是:返回一个包含错误描述的字符串。

This is the default property for the Error object. Both the provider and ADO can be the source of the error.
对于Error对象来说,Description属性是一个默认的属性。技术提供对象[provider]和ADO都可能成为错误源。

The provider should pass error information to ADO. When an error occurs, ADO should create an Error object, which contains error information. ADO should also add the Error object to the Errors Collection.
技术提供对象[provider]将把错误信息传递给ADO。当错误发生时,ADO将创建一个Error对象,它包含了所有的错误信息。ADO将会把Error对象添加到错误集合中。

Syntax
语法

strErrorText=objErr.Description

Example
案例

<%
for each objErr in objConn.Errors response.write("<p>") response.write("Description: ") response.write(objErr.Description & "<br />") response.write("Help context: ") response.write(objErr.HelpContext & "<br />") response.write("Help file: ") response.write(objErr.HelpFile & "<br />") response.write("Native error: ") response.write(objErr.NativeError & "<br />") response.write("Error number: ") response.write(objErr.Number & "<br />") response.write("Error source: ") response.write(objErr.Source & "<br />") response.write("SQL state: ") response.write(objErr.SQLState & "<br />") response.write("</p>")
next
%>

评论 (0) All

登陆 | 还没注册?