throw new IPMatcherException("Malformed IP specification " + ip); int p = Integer.parseInt(parts[i]); if (p < 0 || p > 255) { throw new IPMatcherException("Malformed IP specification " + ip); throw new IPMatcherException("Malformed IP specification " + ip, nfe);
candidate = Inet6Address.getByName(ipIn).getAddress(); } catch (UnknownHostException e) { throw new IPMatcherException("Malformed IPv6 address ", e);
network = Inet6Address.getByName(parts[0]).getAddress(); } catch (UnknownHostException e) { throw new IPMatcherException( "Malformed IP range specification " + ipSpec, e); maskBits = Integer.parseInt(parts[1]); } catch (NumberFormatException nfe) { throw new IPMatcherException( "Malformed IP range specification " + ipSpec, nfe); throw new IPMatcherException("Mask bits out of range 0-128 " + ipSpec); throw new IPMatcherException("Malformed IP range specification " + ipSpec); x = Integer.parseInt(maskParts[0]); } catch (NumberFormatException nfe) { throw new IPMatcherException( "Malformed IP range specification " + ipSpec, nfe); throw new IPMatcherException(); throw new IPMatcherException("Malformed IP range specification " + ipSpec);