VBScript » Err » Description

Version: 1.0

Syntax:
object. Description [ =string]
string
Allows you to define the description of the error in your code.

This property returns or sets a string containing a brief textual description of an error.

Providing the generated error number relates to a VBScript runtime error, and the Description value is automatically filled with a default description.

Examples

Code:
<%
On Error Resume Next
Err.Raise 48
Err.Description = "My error"
Response.Write "Error type is '" Err.Description "'."
%>
Output:
"Error type is 'My error'."