Code example for UnknownHostException

Methods: getMessage

0
	    hostname = iaddr.getHostName();
	} catch (final UnknownHostException e) {
	    LOGGER.log(
		    Level.SEVERE,
		    "An error occurred while trying to resolve the master's network name and address: " 
		    + e.getMessage(), e);
	} 
    } 
 
    public static String getHostName() {
	return hostname;
    } 
 
    public static String getIpAddress() {
	return ipaddr;
    } 
}