ASP ASPError



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


ASPError Object

The ASPError object is effective in ASP 3.0 and is available in IIS5 and later.

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

Note: When Server.GetLastError is called, an 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):

Properties

PropertiesDescription
ASPCodeReturns the error code generated by IIS.
ASPDescriptionReturns error details (if the error is ASP related).
CategoryReturn the source of the error. (Is the error caused by ASP, a scripting language, or an object?)
ColumnReturns the column position in the erroring file.
Description Returns a brief description of the error.
FileReturns the name of the ASP file in error.
LineReturns the line number where the error is located.
NumberReturns the standard COM error code for the error.
SourceReturns the actual source code of the line where the error occurs.