ValidatorUtility.validateInt(Constants.MIN_OTI_VALUE_SRV, otiValue, Constants.MAX_OTI_VALUE,
SCMPError.HV_WRONG_OPERATION_TIMEOUT);
// sc error code mandatory
String sec = message.getHeader(SCMPHeaderAttributeKey.SC_ERROR_CODE);
if (sec == null || sec.equals("")) {
throw new SCMPValidatorException(SCMPError.HV_WRONG_SC_ERROR_CODE, "sc error code must be set");
}
// sc error text mandatory
String set = message.getHeader(SCMPHeaderAttributeKey.SC_ERROR_TEXT);
if (set == null || set.equals("")) {
throw new SCMPValidatorException(SCMPError.HV_WRONG_SC_ERROR_TEXT, "sc error text must be set");
}
} catch (HasFaultResponseException ex) {
// needs to set message type at this point
ex.setMessageType(getKey());
throw ex;
} catch (Throwable th) {
LOGGER.error("validation error", th);
SCMPValidatorException validatorException = new SCMPValidatorException();
validatorException.setMessageType(getKey());
throw validatorException;
}
}