private void error(final Throwable e) {
        LOGGER.debug(e::getMessage, e);
        if (e instanceof MapFullException) {
            errorConsumer.add(() -> "Unable to add search result as result store has reached max capacity of " +
                                    env.getMaxStoreSize());
        } else if (e instanceof LmdbException) {
            String message = e.getMessage();
            if (message != null) {
                // Remove native LMDB error code as it means nothing to users.
                if (message.endsWith(")")) {
                    final int index = message.lastIndexOf(" (");
                    if (index != -1) {
                        message = message.substring(0, index);
                    }
                }
                final String msg = message;
                errorConsumer.add(() -> msg);
            }
        } else {
            errorConsumer.add(e);
        }
    }
Add some values to the data store.

@param values The values to add to the store.
stroom-query/stroom-query-common/src/main/java/stroom/query/common/v2/LmdbDataStore.java