Package org.gatein.management.api.exceptions

Examples of org.gatein.management.api.exceptions.InvalidDataException


        return pagination;
    }

    public static InvalidDataException invalidRequestParameter(String name, String value) {
        throw new InvalidDataException("Invalid value '" + value + "' for request parameter " + name);
    }
View Full Code Here


        return invalidData("%s is required when " + when, names);
    }

    public static InvalidDataException invalidData(String format, String... names) {
        if (names == null) {
            throw new InvalidDataException(format);
        }
        return new InvalidDataException(String.format(format, resolveField(names)));
    }
View Full Code Here

TOP

Related Classes of org.gatein.management.api.exceptions.InvalidDataException

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.