0

What are the differences between these two exceptions and in which cases can they occur together?

  1. javax.ws.rs.ProcessingException: java.net.NoRouteToHostException: No route to host (Host unreachable)
  2. javax.ws.rs.ProcessingException: java.net.SocketTimeoutException: Read timed out
Nipun Soni
  • 35
  • 5
  • What do you mean by "together"? Only one exception is ever thrown, never two at the same time - so there is no case where they occur together. – Olaf Kock Oct 05 '20 at 07:45
  • Together as in, the case in which I encountered these exceptions, first SocketTimeOut exception came and on retrying the call, Host Unreachable exception came. – Nipun Soni Oct 05 '20 at 07:49

0 Answers0