File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I identify the connection problem?

 
Edward Durai
Ranch Hand
Posts: 223
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic