private void postError(@NonNull AlgoliaException error, int currentRequestId) { for (AlgoliaErrorListener listener : errorListeners) { listener.onError(query, error); } EventBus.getDefault().post(new ErrorEvent(this, error, query, currentRequestId)); }