import BadDataException from "../Exception/BadDataException";
import IP from "./IP";
export default class IPv4 extends IP {
    constructor(ip) {
        super(ip);
        if (!this.isIPv6()) {
            throw new BadDataException("IP is not a valid IPv6 address");
        }
    }
}
//# sourceMappingURL=IPv6.js.map