Huge thanks to Marc Chung for sending along this great reference. It’s a breakdown of all the JDK exceptions and textual descriptions of what they represent — so if you are designing your own API or just working on your own app and want to make sure your use of particular exceptions (e.g. IllegalArgumentException) is [...]
Continue reading...Tuesday, October 28, 2008
Dealing with exceptions is a big part of any object oriented programmer’s job. We need to be able to recover from things like connect failures or syntax errors, and do so gracefully. Thankfully, raising and “rescuing” exceptions in Ruby is a fairly easy task. Let’s start with a basic example. We all know [...]
Continue reading...Friday, October 3, 2008
It seems, given my limited experience, that handling exceptions depends entirely on the context in which you are developing. As a fan of “rules” that can be applied to different scenarios I wanted to hit you guys up and see what the rules-of-thumb were with regards to exception handling. Some approaches to exception handling sort of [...]
Continue reading...
Tuesday, February 24, 2009
0 Comments