* @throws SCMPValidatorException
* the SCMP validator exception
*/
public static void validateDateTime(String dateTimeString, SCMPError error) throws SCMPValidatorException {
if (dateTimeString == null) {
throw new SCMPValidatorException(SCMPError.HV_ERROR, "date time value is missing");
}
try {
DateTimeUtility.parseDateString(dateTimeString);
} catch (ParseException ex) {
throw new SCMPValidatorException(SCMPError.HV_WRONG_LDT, dateTimeString + " should be="
+ Constants.SCMP_FORMAT_OF_DATE_TIME);
}
}