Ray Milkey
Committed by Gerrit Code Review

ONOS-395 - tighten up exception handling

Change-Id: Ice3ee55adacbd890100def5d9da44c6e2a770945
......@@ -113,12 +113,12 @@ public class NettyMessagingService implements MessagingService {
try {
localEp = new Endpoint(java.net.InetAddress.getLocalHost().getHostName(), port);
} catch (UnknownHostException e) {
// bailing out.
throw new RuntimeException(e);
// Cannot resolve the local host, something is very wrong. Bailing out.
throw new IllegalStateException("Cannot resolve local host", e);
}
}
public void activate() throws Exception {
public void activate() throws InterruptedException {
channels.setTestOnBorrow(true);
channels.setTestOnReturn(true);
initEventLoopGroup();
......