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

inet.ipaddr.IPAddressStringException Maven / Gradle / Ivy

There is a newer version: 5.5.1
Show newest version
package inet.ipaddr;

/**
 * 
 * @author sfoley
 *
 */
public class IPAddressStringException extends HostIdentifierException {

	private static final long serialVersionUID = 1L;
	
	private static String errorMessage = getMessage("ipaddress.address.error");
	
	public IPAddressStringException(String str, String key, Throwable cause) {
		super(str, errorMessage, key, cause);
	}
	
	public IPAddressStringException(String str, String key) {
		super(str, errorMessage, key);
	}
	
	public IPAddressStringException(String str, int characterIndex, boolean combo) {
		super(str + ' ' + errorMessage + ' ' + 
				getMessage(combo ? "ipaddress.error.invalid.character.combination.at.index" : "ipaddress.error.invalid.character.at.index") + ' ' + characterIndex);
	}
	
	public IPAddressStringException(String key) {
		super(errorMessage, key);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy