
com.github.bingoohuang.springrestclient.utils.AsmValidatorLog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-rest-client Show documentation
Show all versions of spring-rest-client Show documentation
convenient spring rest client for rest services
package com.github.bingoohuang.springrestclient.utils;
import com.github.bingoohuang.asmvalidator.AsmParamsValidatorFactory;
import com.github.bingoohuang.asmvalidator.ex.AsmValidateException;
import lombok.experimental.UtilityClass;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@UtilityClass
public class AsmValidatorLog {
public void validate(
Class> apiClass,
String methodSignature,
Object... parametersValues
) {
try {
AsmParamsValidatorFactory.validate(methodSignature, parametersValues);
} catch (AsmValidateException e) {
Logger log = LoggerFactory.getLogger(apiClass);
log.warn("validate failed {}", e.getMessage());
throw e;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy