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

Chapter 10. Error() > Example: Creating and Using Errors

Example: Creating and Using Errors

Internet Explorer 5.0 supports only the Error() constructor function; Internet Explorer 5.5 and Netscape 6 support all the constructor functions named in the name property definition. For backward-compatibility and simplicity, however, let's stick with Error().

Note

Internet Explorer 4 and Netscape 4 do not support Error() as defined by ECMAScript third edition. However, you can create an Error() constructor as I demonstrate in Chapter 1, “Object().” If you choose to do so, please do so in compliance with ECMAScript third edition. You will not be able to create the try...catch and throw statements, however.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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