Package com.cisco.oss.foundation.configuration.validation.exceptions

Examples of com.cisco.oss.foundation.configuration.validation.exceptions.ValidationConfigException


            } else {
                errMsg = validateHexValue(value, maxLength, lengthInBits, exactLength);
            }

            if (errMsg != null) {
                throw new ValidationConfigException(errMsg + " (Parameter: " + name + ")");
            }

        }
View Full Code Here


        protected boolean validateAndReturnIfEmpty(String name, T value) {

            if (ConfigUtil.isEmpty(value)) {

                if (required) {
                    throw new ValidationConfigException("Required parameter value is empty: " + name);
                }
                return true;
            }

            return false;
View Full Code Here

                return;
            }

            URL url = ConfigUtil.getResource(value);
            if (url == null) {
                throw new ValidationConfigException("File '" + value + "' cannot be found (Parameter: " + name + ")");
            }
        }
View Full Code Here

            }

            try {
                URL url = new URL(value);
            } catch (MalformedURLException e) {
                throw new ValidationConfigException("'" + value + "' is not a valid URL (Parameter: " + name + ")");
            }

        }
View Full Code Here

TOP

Related Classes of com.cisco.oss.foundation.configuration.validation.exceptions.ValidationConfigException

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.