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
Properties | Description |
---|---|
ASPCode | Returns the error code generated by IIS. |
ASPDescription | Returns error details (if the error is ASP related). |
Category | Return the source of the error. (Is the error caused by ASP, a scripting language, or an object?) |
Column | Returns the column position in the erroring file. |
Description | Returns a brief description of the error. |
File | Returns the name of the ASP file in error. |
Line | Returns the line number where the error is located. |
Number | Returns the standard COM error code for the error. |
Source | Returns the actual source code of the line where the error occurs. |