@NonNull
    public StatusCode getError() {
        final Collection<StatusCode> l = getAllFromContext(b -> StatusCode.values()[b.getInt(CON_ERROR)]).values();
        for (StatusCode sc : l) {
            if (!StatusCode.NO_ERROR.equals(sc)) {
                return sc;
            }
        }
        return StatusCode.NO_ERROR;
    }
Build a search result from a collection of caches.

@param caches the non-null collection of caches to include
main/src/main/java/cgeo/geocaching/SearchResult.java