File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes How can I identify the connection problem? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How can I identify the connection problem?" Watch "How can I identify the connection problem?" New topic
Author

How can I identify the connection problem?

Edward Durai
Ranch Hand

Joined: Oct 09, 2004
Posts: 223
Hello Everyone,

I have done mail application sending and receiving. That's working fine. During the mail sending/receiving, If any problem in internet connection, How can I identify the error messages to display in UI Page for user view.


So User can easily identify, Some internet connection problem. I got exception in console only. Is it possible to display internet connection problem error messages to display in UI Pages for Users view.

Please let me know.

Thanking You

Regards,
Edward


Thank You<br />Edward
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42919
    
  68
You'd probably get one of the subclass-exceptions of MessagingException (assuming you're using Transport.send). Why don't you simulate a problem by pulling your network connection before sending, and observe which one it is?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I identify the connection problem?