JS: Error Object

By Xah Lee. Date: . Last updated: .

2015-08-13 todo, work in progress .

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

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.

JavaScript, Try, Catch, Throw, Error

BUY ΣJS JavaScript in Depth