Have you seen a coding guidelines document that did not call for some sort of exception handling, be it in the form of __try/__except, On Error GoTo, try/catch, or any other way? Most developers would agree that it’s important to catch exceptions and, if not handle them, at least log the error details for later analysis and, perhaps, let the end user know that a problem has occurred via an application controlled popup dialog.
// Your code goes here
// Logging goes here
// The exception object e has the following properties:
// name, number, description, message and propStackFrame
Tip: while still in development, add
statement as the first line in the catch block, and you’ll be able to suspend the execution of the application, evaluate object values, execute instructions one line at a time, etc.