void RegionResult::AddResultOrException()

in src/hbase/client/region-result.cc [32:41]


void RegionResult::AddResultOrException(int32_t index, std::shared_ptr<hbase::Result> result,
                                        std::shared_ptr<folly::exception_wrapper> exc) {
  auto index_found = result_or_excption_.find(index);
  if (index_found == result_or_excption_.end()) {
    result_or_excption_[index] = std::make_tuple(result ? result : nullptr, exc ? exc : nullptr);
  } else {
    throw std::runtime_error("Index " + std::to_string(index) +
                             " already set with ResultOrException");
  }
}