private void throwIllegalInput(CompoundName name, Object value, TensorType expectedType) {
        throw new IllegalInputException("Could not set '" + name + "' to '" + value + "': " +
                                           "This input is declared in rank profile '" + query.getRanking().getProfile() +
                                           "' as " + expectedType);
    }
Verifies and converts properties according to any input declarations in the rank profile set on the query.

@author bratseth
container-search/src/main/java/com/yahoo/search/query/properties/RankProfileInputProperties.java