275276277278279280281282283
} else { errMsg = validateHexValue(value, maxLength, lengthInBits, exactLength); } if (errMsg != null) { throw new ValidationConfigException(errMsg + " (Parameter: " + name + ")"); } }
6970717273747576777879
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;
166167168169170171172173
return; } URL url = ConfigUtil.getResource(value); if (url == null) { throw new ValidationConfigException("File '" + value + "' cannot be found (Parameter: " + name + ")"); } }
201202203204205206207208209
} try { URL url = new URL(value); } catch (MalformedURLException e) { throw new ValidationConfigException("'" + value + "' is not a valid URL (Parameter: " + name + ")"); } }