inet.ipaddr.HostNameException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ipaddress Show documentation
Show all versions of ipaddress Show documentation
Library for handling IP addresses, both IPv4 and IPv6
package inet.ipaddr;
/**
*
* @author sfoley
*
*/
public class HostNameException extends HostIdentifierException {
private static final long serialVersionUID = 1L;
private static String errorMessage = getMessage("ipaddress.host.error");
public HostNameException(String host, int index) {
super(host + " " + errorMessage + " " + getMessage("ipaddress.host.error.invalid.character.at.index") + ' ' + index);
}
public HostNameException(String host, String key) {
super(host, errorMessage, key);
}
public HostNameException(String host, IPAddressStringException e, String key) {
super(host, errorMessage, key, e);
}
}