Name
Description —
objASPError.Description
Synopsis
The Description property is a string describing the last-occurring error. It is typically more descriptive and useful than the related ASPDescription property, except when the error is ASP interpretation-specific.
Parameters
None
Example
This example uses the error-generating scripts listed at the end of the Comments/Troubleshooting section. It assumes that the following code has been added to the default custom error script, 500-100.ASP:
**** BEGIN Description Example Script **** <% ' This script demonstrates the use of the Description ' property of the ASPError object. Dim objMyASPError Set objMyASPError = Server.GetLastError( ) Response.Write "The value of the Description property is " & objMyASPError.Description %> **** END Description Example Script ****
When the error-generating scripts are executed, the preceding Description script generates the following three responses:
Error Generating Script #1:
The value of the Description property is Expected end of statementError Generating Script #2:
The value of the Description property is Missing File or Virtual attributeError Generating Script #3:
The value of the Description property is Division by zeroNotes
The Description property value is typically more descriptive than the other properties of the ASPError object. However, like all the other properties, it is of very little use to the end users of your ASP application. As such, it is important that any information you display explaining ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access