Sync Integ to Master
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / components / validation / ValidationUtils.java
1 package org.openecomp.sdc.be.components.validation;
2
3 import org.openecomp.sdc.exception.ResponseFormat;
4 import org.slf4j.Logger;
5 import org.slf4j.LoggerFactory;
6
7 public class ValidationUtils {
8
9     private static final Logger LOGGER = LoggerFactory.getLogger(ValidationUtils.class);
10
11     public static  <T> T throwValidationException(ResponseFormat responseFormat, String logMessage, Object ... logParams){
12         LOGGER.error(logMessage, logParams);
13         throw new ValidationException(responseFormat);
14     }
15
16 }