WebSphere Application Server - Re: websphere eclipse compile error javamail unhandled exception

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > March 2006 > Re: websphere eclipse compile error javamail unhandled exception





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: websphere eclipse compile error javamail unhandled exception
Ray McVay

2006-03-16, 5: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.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com