ADO Description 属性

定義と使用法

Description 属性は、エラーの説明を含む文字列を返します。

これは Error オブジェクトのデフォルト属性です。プロバイダーや ADO がエラースレートとなります。

プロバイダーは特定のエラーテキストを ADO に渡す責任があります。プロバイダーからのエラーや警告を受け取ると、ADO は Errors コレクションに Error オブジェクトを追加します。Errors コレクションを列挙して、プロバイダーが渡したエラーを追跡します。

文法

strErrorText=objErr.Description

<%
for each objErr in objConn.Errors
  response.write("<p>")
  response.write("説明:")
  response.write(objErr.Description & "<br />")
  response.write("ヘルプコンテキスト:")
  response.write(objErr.HelpContext & "<br />")
  response.write("ヘルプファイル:")
  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>")
次へ
%>