Javascript: Error Object

By Xah Lee. Date:

2015-08-13 todo, work in progress .

JavaScript error object, is typically use with the “throw” statement. [see Throw Try Catch Finally]

ECMAScript 2015 §Fundamental Objects#sec-error-objects

Error.prototype

Error()

Error(message)message is a optional message for information purposes.

new Error() → same as Error().

Properties

message → value is from the argument when Error(...) is called. If none given, it's supplied by browser.

name → a name for the error.

ECMAScript 2015 §Fundamental Objects#sec-native-error-types-used-in-this-standard

ECMAScript 5.1 §4

JS in Depth
XAH  BUY NOW