August 1999
Intermediate to advanced
1488 pages
72h 53m
English
var variable = new Error(); var variable = new Error(num); var variable = new Error(num, description);
The Error object contains information about errors. The Error() constructors can be used to create custom errors. The arguments and properties associated with the Error object are listed in Table 9.8.
| Type | Item | Description |
|---|---|---|
| Arguments | number | A number assigned to an error—Zero, if no number is provided in constructor. |
| description | A string that describes the error—empty string, if no string is provided in constructor. | |
| Properties | description | Sets or returns the description string associated with a specific error. |
| number | Sets or returns the number associated ... |
Read now
Unlock full access