03-16-06 10:54 PM
tek_lemon@yahoo.com wrote:
> The solution requires something like
> try{
> Store store = session.getStore("pop3");
> ...
> }catch (Exception ex) {
> System.out.println(ex.getMessage());
> }
Personally, I don't think catching Exception is ever a good idea. You
should catch only the expected exceptions and handle them accordingly
(even if it's only writing a log entry) or you should declare your
method to throw the ones you feel need to be handled at a higher level.
[ Post a follow-up to this message ]
|