Technology Programming

Try

Definition: The try statement defines a block of code that will have special error processing attached to handle any errors that occur during the running of the code in the block. Any errors occuring during the execution of the code will be handled by the appropriate catch and finally blocks. Try is a reserved word and cannot be used for anything other than declaring a try block.

Examples: try {var oDoc = new ActiveXObject(idList) ...}

Leave a reply