All Downloads are FREE. Search and download functionalities are using the official Maven repository.

inet.ipaddr.HostNameException Maven / Gradle / Ivy

There is a newer version: 5.5.1
Show newest version
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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy