Easy Tutorial
❮ Asp Ref Dictionary Prop Attributes Folder ❯

ASP ASPError Object


The ASPError object is used to display error information that occurs in the scripts of an ASP file.


ASPError Object

The ASPError object is effective in ASP 3.0 and is available in IIS 5 and later versions.

The ASPError object is used to display detailed information about any errors that occur in the scripts of an ASP file.

Note: The ASPError object is created when Server.GetLastError is called, so error information can only be accessed using the Server.GetLastError method.

The properties of the ASPError object are described as follows (all properties are read-only):

Properties

Property Description
ASPCode Returns the error code generated by IIS.
ASPDescription Returns detailed information about the error (if the error is related to ASP).
Category Returns the source of the error. (Is the error caused by ASP, the scripting language, or the object?)
Column Returns the column position in the file where the error occurred.
Description Returns a brief description of the error.
File Returns the name of the ASP file where the error occurred.
Line Returns the line number where the error occurred.
Number Returns the standard COM error code for the error.
Source Returns the actual source code of the line where the error occurred.
❮ Asp Ref Dictionary Prop Attributes Folder ❯