All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.polyapi.plugin.error.validation.KeywordUseException Maven / Gradle / Ivy

There is a newer version: 0.15.3
Show newest version
package io.polyapi.plugin.error.validation;

import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.stream.Collectors;

import static java.lang.String.format;

public class KeywordUseException extends ValidationException {
    public KeywordUseException(String propertyName, String propertyValue, Method method, String... keywords) {
        super(propertyName, format("Property '%s' with value '%s' of method '%s' uses Java keywords '%s'. Please rename the context accordingly.", "%s", propertyValue, method, Arrays.stream(keywords).collect(Collectors.joining("', '"))));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy