public DefaultErrorHit clone() {
        DefaultErrorHit clone = (DefaultErrorHit) super.clone();

        clone.errors = new ArrayList<>(this.errors);
        return clone;
    }
Returns true if all errors in this have the given code
container-search/src/main/java/com/yahoo/search/result/DefaultErrorHit.java