加入收藏 | 设为首页 | 会员中心 | 我要投稿 聊城站长网 (https://www.0635zz.com/)- 智能语音交互、行业智能、AI应用、云计算、5G!
当前位置: 首页 > 站长学院 > Asp教程 > 正文

ASPCode 属性返回由 IIS 生成的错误代码

发布时间:2023-10-12 15:07:46 所属栏目:Asp教程 来源:
导读:ASPCode

ASPCode 属性返回由 IIS 生成的错误代码。

ASPDescription

ASPDescription 属性返回错误的详细描述。

Category

Category 属性返回错误源(错误是由 IIS 、脚本语言还是组件产生的?)
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)
 
%>
 
 

(编辑:聊城站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章