ASP ASPError Object

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

ASP ASPError Object

ASP 3.0 provides this object and it is available in IIS5 and higher versions.

The ASPError object is used to display detailed information about any errors that occur in the script of an ASP file. When Server.GetLastError is called, the ASPError object is created, so error information can only be accessed by using the Server.GetLastError method.

The properties of the ASPError object are described as follows (all properties are readable):

Note:The following properties can only Server.GetLastError() Method to access.

Property

Property Description
ASPCode Return the error code generated by IIS.
ASPDescription Return detailed information about the error. (If the error is related to ASP.)
Category Return the source of the error. (Is it caused by ASP, script language, or an object?)
Column Return the column position in the error file.
Description Return a brief description of the error.
File Return the filename of the ASP file where the error occurred.
Line Return the line number where the error occurred.
Number Return the standard COM error code about the error.
Source Return the actual source code of the line where the error occurred