blob: a1d5a86f10451a7011be5dac41a972e6c98fb602 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package org.openecomp.sdc.be.components.validation;
import org.openecomp.sdc.common.log.wrappers.Logger;
import org.openecomp.sdc.exception.ResponseFormat;
public class ValidationUtils {
private static final Logger log = Logger.getLogger(ValidationUtils.class);
public static <T> T throwValidationException(ResponseFormat responseFormat, String logMessage, Object ... logParams){
log.error(logMessage, logParams);
throw new ValidationException(responseFormat);
}
}
|