Re: websphere eclipse compile error javamail unhandled exception
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Application Server > Re: websphere eclipse compile error javamail unhandled exception




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: websphere eclipse compile error javamail unhandled exception  
Ray McVay


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:25 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register