public static CanonicalizationResult error(String error) {
            return new CanonicalizationResult(Optional.of(error));
        }
Returns the error of this query, or empty if it is a valid query
container-search/src/main/java/com/yahoo/prelude/query/QueryCanonicalizer.java