ASP ASPErrorオブジェクトのプロパティ


ASPError 对象参考手册完全な ASPError オブジェクトリファレンスマニュアル

ASPCode

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

ASPDescription

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

Category

Category プロパティは、エラーソース(エラーが IIS、スクリプト言語、コンポーネントのいずれによって生成されたか)を返します。

Column

Column プロパティは、エラーが発生した ASP ファイル内の列位置を返します。

Description

Description プロパティは、エラーに関する簡潔な説明を返します。

File

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

Line

Line プロパティは、エラーが発生した ASP ファイル内の行位置を返します。

Number

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

Source

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 オブジェクトリファレンスマニュアル その他の拡張