ASP ASPError 對(duì)象的屬性
完整的 ASPError 對(duì)象參考手冊(cè)
ASPCode
ASPCode 屬性返回由 IIS 生成的錯(cuò)誤代碼。
ASPDescription
ASPDescription 屬性返回錯(cuò)誤的詳細(xì)描述。
Category
Category 屬性返回錯(cuò)誤源(錯(cuò)誤是由 IIS 、腳本語言還是組件產(chǎn)生的?)
Column
Column 屬性返回產(chǎn)生錯(cuò)誤的 ASP 文件中的列位置。
Description
Description 屬性返回關(guān)于錯(cuò)誤的簡要描述。
File
File 屬性返回產(chǎn)生錯(cuò)誤的 ASP 文件的名稱。
Line
Line 屬性返回產(chǎn)生錯(cuò)誤的 ASP 文件中的行位置。
Number
Number 屬性返回錯(cuò)誤的標(biāo)準(zhǔn) COM 錯(cuò)誤代碼。
Source
Source 屬性返回錯(cuò)誤發(fā)生行的實(shí)際源代碼。
語法
ASPError.ASPCode()
ASPError.ASPDescription()
ASPError.Category()
ASPError.Column()
ASPError.Description()
ASPError.File()
ASPError.Line()
ASPError.Number()
ASPError.Source()
實(shí)例
<%
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 對(duì)象參考手冊(cè)
更多建議: