public static ErrorMessage createIllegalQuery(String detailedMessage) {
        return new ErrorMessage(ILLEGAL_QUERY.code, "Illegal query", detailedMessage);
    }
Creates an error message indicating that an illegal query was attempted evaluated.
container-search/src/main/java/com/yahoo/search/result/ErrorMessage.java