MCPcopy Create free account
hub / github.com/apache/arrow / OutcomeToStatus

Function OutcomeToStatus

cpp/src/arrow/filesystem/s3_internal.h:216–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214
215template <typename AwsResult, typename Error>
216Status OutcomeToStatus(const std::string& prefix, const std::string& operation,
217 const Aws::Utils::Outcome<AwsResult, Error>& outcome) {
218 if (outcome.IsSuccess()) {
219 return Status::OK();
220 } else {
221 return ErrorToStatus(prefix, operation, outcome.GetError());
222 }
223}
224
225template <typename AwsResult, typename Error, typename... Args>
226Status OutcomeToStatus(const std::tuple<Args&...>& prefix, const std::string& operation,

Callers 11

SetUpMethod · 0.85
SetUpMethod · 0.85
PopulateTestBucketMethod · 0.85
RestoreTestBucketMethod · 0.85
SetUpMethod · 0.85
CreateEmptyDirMethod · 0.85
DeleteObjectMethod · 0.85
CopyObjectMethod · 0.85
DeleteDirMethod · 0.85
MakeBucketMethod · 0.85
MakeObjectMethod · 0.85

Calls 2

ErrorToStatusFunction · 0.85
OKFunction · 0.50

Tested by 5

SetUpMethod · 0.68
SetUpMethod · 0.68
PopulateTestBucketMethod · 0.68
RestoreTestBucketMethod · 0.68
SetUpMethod · 0.68