Latest web development tutorials

ASP ASPError objects

ASPError object error message occurs in the ASP script files for display.


ASPError object

ASPError objects take effect in ASP 3.0, and is available in IIS5 and later.

ASPError object details of any error that occurred in the ASP script files for display.

Note: When Server.GetLastError is called, ASPError object is created, it can only be accessed by using the error message Server.GetLastError methods.

Property Description ASPError object as follows (all properties are readable):

Attributes

属性 描述
ASPCode 返回由 IIS 生成的错误代码。
ASPDescription 返回错误的详细信息(如果错误和 ASP 相关)。
Category 返回错误来源。(错误是由 ASP、脚本语言还是对象引起的?)
Column 返回在出错文件中的列位置。
Description 返回关于错误的简短描述。
File 返回出错 ASP 文件的名称。
Line 返回错误所在的行数。
Number 返回关于错误的标准 COM 错误代码。
Source 返回错误所在行的实际的源代码。