Latest web development tutorials

ASP ASPErrorオブジェクトの属性

ASPErrorオブジェクトリファレンス ASPErrorオブジェクト参照を完了します

ASPCode

ASPCodeプロパティは、IISで生成されたエラーコードを返します。

ASPDescription

ASPDescriptionプロパティは、エラーの詳細な説明を返します。

カテゴリ

Categoryプロパティは、(エラーが発生IIS、スクリプト言語またはコンポーネントによって引き起こされる?)エラーの原因を返します。

コラム

Columnプロパティは、ASPファイルのカラム位置にエラーを返します。

説明

Descriptionプロパティは、エラーの簡単な説明を返します。

ファイル

ファイルのプロパティには、エラーASPファイルの名前を返します。

ライン

ラインプロパティはfalse ASPファイルの行の位置を返します。

Numberプロパティは、間違った標準COMエラーコードを返します。

ソース

Sourceプロパティは、行の実際のソースコードのエラーを返します。

文法

ASPError.ASPCode()
ASPError.ASPDescription()
ASPError.Category()
ASPError.Column()
ASPError.Description()
ASPError.File()
ASPError.Line()
ASPError.Number()
ASPError.Source()

<%
dim objErr
set objErr=Server.GetLastError()

response.write("ASPCode=" & objErr.ASPCode)
response.write("<br>")
response.write("ASPDescription=" & objErr.ASPDescription)
response.write("<br>")
response.write("Category=" & objErr.Category)
response.write("<br>")
response.write("Column=" & objErr.Column)
response.write("<br>")
response.write("Description=" & objErr.Description)
response.write("<br>")
response.write("File=" & objErr.File)
response.write("<br>")
response.write("Line=" & objErr.Line)
response.write("<br>")
response.write("Number=" & objErr.Number)
response.write("<br>")
response.write("Source=" & objErr.Source)
%>


ASPErrorオブジェクトリファレンス ASPErrorオブジェクト参照を完了します