Some general guidance on building libraries: Since a library is generally ignorant how it will be called, it can't make many assumptions on how to handle (or even
if it should handle) errors. So as a general rule, I recommend not trying to catch very many exceptions in library classes (exept perhaps to display the message on System.out). Just pass along the exception to the calling app - only he knows the context & can make an informed decision on what to do with errors. Trying to to be too clever in error handling is a common beginner's mistake when developing API's for the first time.