1 package org.openecomp.sdc.be.components.validation;
3 import org.openecomp.sdc.exception.ResponseFormat;
4 import org.slf4j.Logger;
5 import org.slf4j.LoggerFactory;
7 public class ValidationUtils {
9 private static final Logger LOGGER = LoggerFactory.getLogger(ValidationUtils.class);
11 public static <T> T throwValidationException(ResponseFormat responseFormat, String logMessage, Object ... logParams){
12 LOGGER.error(logMessage, logParams);
13 throw new ValidationException(responseFormat);