The Error() constructor can be called with the new operator or as a function.
The initial value of Error.prototype.constructor is the built-in Error() constructor.
The two arguments supplied to the Error() constructor describe the error number and a textual description. They are all optional.
A prototype property is automatically created in case the Error object is used as a constructor at some future time.
Prev | Home | Next |
Error object | Up | Error() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |