devxlogo

Exception Handling

Improved JavaScript Error Handling

To supress JavaScript error messages, simply place this snippet in the Head section of your Web page: &ltSCRIPT language=”JavaScript”&gtfunction dontshowerrormessages() {return true;}window.onerror=dontshowerrormessages; An even better method is to use the

Causes for an InstantiationException

Question: What can cause an InstantiationException? Answer: An InstantiationException is thrown when you try to create an instance of a class with Class.newInstance() and the class cannot beinstantiated. This could