Code example for UnknownHostException

0
        ip = IPAddressUtil.textToNumericFormatV6(ipText);
 
        if (ip != null)
            return ip;
 
        throw ArgoException.raise(new UnknownHostException("[" + ipText + "]"));
    } 
 
    public static InetAddress getInetAddressFromText(String ipText) {
        byte[] ip = getDigitalFromText(ipText);
 
        try { 
            return InetAddress.getByAddress(ip);
        } catch (UnknownHostException e) {
            throw ArgoException.raise(new UnknownHostException("[" + ipText + "]"));
        } 
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java