当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP Error

ASP
ASP Drive
ASP File
ASP Folder
ASP Dictionary
ASP ADO
ASP AdRotator
ASP BrowserCap
ASP Content Linking
ASP Content Rotator
ASP Quick Ref
ASP 摘要
ASP 实例

ASP Error


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 820 ::
收藏到网摘: n/a

The ASPError object is used to display detailed information of any error that occurs in scripts in an ASP page.
ASPError对象是用来显示ASP页面中脚本错误的具体信息的。


The ASPError Object
ASPError对象

The ASPError object was implemented in ASP 3.0 and is available in IIS5 and later.
ASPError对象只能在ASP3.0中实现并只支持IIS5以及更高版本的IIS。

The ASPError object is used to display detailed information of any error that occurs in scripts in an ASP page. The ASPError object is created when Server.GetLastError is called, so the error information can only be accessed by using the Server.GetLastError method.
ASPError对象是用来显示ASP页面中脚本错误的具体信息的。当Server.GetLastError被请求时,ASPError对象就会自动建立。所以,所有的错误信息只能通过Server.GetLastError方法被访问到。

The ASPError object's properties are described below (all properties are read-only):
所有的ASPError属性将在下表中作具体描述。(注:所有的属性都是“只读”的。)

Note: The properties below can only be accessed through the Server.GetLastError() method. 
注意:下面的这些属性只能通过Server.GetLastError方法访问。

Properties
属性

Property
属性
Description
描述
ASPCode Returns an error code generated by IIS
通过IIS产生一个错误的代码
ASPDescription Returns a detailed description of the error (if the error is ASP-related)
返回一个具体的错误描述 (如果这个错误是与ASP相关的)
Category Returns the source of the error (was the error generated by ASP? By a scripting language? By an object?)
返回产生错误的源文件(这个错误是否是通过ASP产生的?还是脚本语言产生的? 还是其中一个对象产生的?)
Column Returns the column position within the file that generated the error
返回文件中错误的列位信息
Description Returns a short description of the error
返回错误的简短描述
File Returns the name of the ASP file that generated the error
返回产生错的ASP文件名
Line Returns the line number where the error was detected
产出发生的错误出现在第几行
Number Returns the standard COM error code for the error
返回标准的COM错误代码
Source

Returns the actual source code of the line where the error occurred
返回发生错误的源代码行

评论 (0) All

登陆 | 还没注册?