• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Error() > Description

Description

Errors, or exceptions, exist in every programming language—not errors of the language, but features of the language to handle errors in various programs and scripts. JavaScript has its own version of errors as well. However, the latest push toward JavaScript standardization means that even errors are considered objects.

Error-handling has been part of JavaScript since Netscape 4 and Internet Explorer 4. The third edition of ECMAScript defines special statements for handling errors (try...catch...finally and throw, which I cover in Chapter 11, “The Global Object and Statements”), and prior to that, we have the window.onerror event handler for at least documenting errors.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint