JavaScript Tutorial/MS JScript/Error
Error
Syntax
<source lang="javascript">
var variable = new Error();
var variable = new Error(num); var variable = new Error(num, description);</source>
The Error object contains information about errors.
description -- A string that describes the error.
Properties description description Sets or returns the description string. number Sets or returns the number associated with a specific error.
Error.description
Syntax
<source lang="javascript">
errorobj.description
errorobj.description = string</source>
Error.number
Syntax
<source lang="javascript">
errorobj.number
errorobj.number = number;</source>