If isReachable throws an IOException in Java, what is the right step to do and why?

If isReachable throws an IOException in Java, what is the right step to do and why?

The application, I believe, should halt the process and output the system message: the host is not accessible. Because isReachable throws an IOException, the host cannot be reached. But I'm not sure what the solution is. I would be grateful if you could assist me.

Thank you very much

  Discussion posts and replies are publicly visible