How to Use Try, Catch, Throw in JavaScript Sample Logic...
catch (error) { alert (“An“ + error + “exception was encountered. Please contact the program vendor.”) // In a real-life situation, you might want // to include error-handling code here that // examines the