Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

ASP ASPError 对象


ASPError 对象显示脚本中错误的信息。


ASPError 对象

ASPError 对象是在 ASP 3.0 中实现的,并在 IIS5 及更高版本中可用。

ASPError 对象用于显示 ASP 页面中脚本中出现的任何错误的详细信息。

注意: 当调用 Server.GetLastError 时,将创建 ASPError 对象,因此只能使用 Server.GetLastError 方法访问错误信息。

ASPError 对象的属性如下所述(所有属性都是只读的)

属性

属性 描述
ASPCode 返回 IIS 生成的错误代码
ASPDescription 返回错误的详细描述(如果错误与 ASP 相关)
Category 返回错误的来源(错误是由 ASP 生成?由脚本语言生成?由对象生成?)
Column 返回生成错误的文件中的列位置
描述 返回错误的简要描述
File 返回生成错误的 ASP 文件的名称
Line 返回检测到错误的行号
Number 返回错误的标准 COM 错误代码
Source 返回发生错误的行代码的实际源代码

×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.