Package com.dtolabs.rundeck.core.plugins.configuration

Examples of com.dtolabs.rundeck.core.plugins.configuration.ValidationException


                    public boolean isValid(String s) throws ValidationException {
                        try {
                            final int i = Integer.parseInt(s);
                            if (i <= 0 || i >= 6) {
                                //throw ValidationException to indicate a problem, with a reason
                                throw new ValidationException("Must be between 1 and 5");
                            }
                        } catch (NumberFormatException e) {
                            throw new ValidationException("Not a valid integer");
                        }
                        return true;
                    }

                })
View Full Code Here

TOP

Related Classes of com.dtolabs.rundeck.core.plugins.configuration.ValidationException

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.