MCPcopy Create free account
hub / github.com/apple/foundationdb / throwIfError

Function throwIfError

fdbserver/tester.actor.cpp:856–863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

854
855template <class T>
856void throwIfError(const std::vector<Future<ErrorOr<T>>>& futures, std::string errorMsg) {
857 for (auto& future : futures) {
858 if (future.get().isError()) {
859 TraceEvent(SevError, errorMsg.c_str()).error(future.get().getError());
860 throw future.get().getError();
861 }
862 }
863}
864
865ACTOR Future<DistributedTestResults> runWorkload(Database cx,
866 std::vector<TesterInterface> testers,

Calls 6

TraceEventClass · 0.85
getMethod · 0.65
isErrorMethod · 0.45
errorMethod · 0.45
c_strMethod · 0.45
getErrorMethod · 0.45

Tested by

no test coverage detected