Package nz.co.abrahams.asithappens.core

Examples of nz.co.abrahams.asithappens.core.InvalidInputException


    /** @param text source IP address */
    public void setSrcAddress(String text) throws InvalidInputException {
        try {
            srcAddress = InetAddress.getByName(text);
        } catch (UnknownHostException e) {
            throw new InvalidInputException("Invalid source address", e);
        }
    }
View Full Code Here


    /** @param text destination IP address */
    public void setDstAddress(String text) throws InvalidInputException {
        try {
            dstAddress = InetAddress.getByName(text);
        } catch (UnknownHostException e) {
            throw new InvalidInputException("Invalid destination address", e);
        }
    }
View Full Code Here

    /** @param text next-hop IP address */
    public void setNhAddress(String text) throws InvalidInputException {
        try {
            nhAddress = InetAddress.getByName(text);
        } catch (UnknownHostException e) {
            throw new InvalidInputException("Invalid next-hop address", e);
        }
    }
View Full Code Here

TOP

Related Classes of nz.co.abrahams.asithappens.core.InvalidInputException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.