ASP ASPError Object
The ASPError object is used to display information about errors that occur in the scripts of an ASP file.
ASPError Object
The ASPError object is available in ASP 3.0 and can be used in IIS5 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 through the Server.GetLastError method.
The properties of the ASPError object are described below (all properties are read-only):
property
| 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. (Was the error caused by ASP, a scripting language, or an object?) |
| Column | Returns the column position in the file where the error occurred. |
| Description | Returns a short 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. |