ASPASPErrorオブジェクトのプロパティ
❮完全なASPErrorオブジェクトリファレンス
ASPCode
ASPCodeプロパティは、IISによって生成されたエラーコードを返します。
ASPDescription
ASPDescriptionプロパティは、エラーの詳細な説明を返します。
カテゴリー
Categoryプロパティは、エラーの原因を返します(IISによって生成されたエラーですか?スクリプト言語ですか?それともコンポーネントですか?)。
桁
Columnプロパティは、エラーを生成したASPファイル内の列の位置を返します。
説明
Descriptionプロパティは、エラーの簡単な説明を返します。
ファイル
Fileプロパティは、エラーを生成したASPファイルの名前を返します。
ライン
Lineプロパティは、エラーを生成した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オブジェクトリファレンス