Applies to: Error object
The description properties sets the descriptive string associated with a specific error.
Syntax
object.description [= stringexpression]
The description property syntax has these parts:
Part |
Description |
object |
Any instance of an Error object. |
stringexpression |
A string expression containing a description of the error. |
Return value
Returns the descriptive string associated with a specific error.
Remarks
The description property contains the error message string associated with a specific error. Use the value contained in this property to alert a user to an error that you can't or don't want to handle.
See Also: number property |