Exception Handling and Logging
In a perfect world, we would all develop quality, bug-free applications that are worthy of high honors, praise, and accolades. Unfortunately, we don’t live in a perfect world, and sometimes, bad things happen to good people. Make sure that your application is not one of those bad things. You need to design your application to handle all situations that it may encounter through user interaction—the good, the bad, and the ugly.
Exception handling is a necessity in any application to ensure application stability and to prevent users from experiencing an unexpected crash. You also need to thwart exceptions ...