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

Method ErrorToDetail

cpp/src/arrow/filesystem/s3fs.cc:651–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

649 private:
650 template <typename ErrorType>
651 static S3RetryStrategy::AWSErrorDetail ErrorToDetail(
652 const Aws::Client::AWSError<ErrorType>& error) {
653 S3RetryStrategy::AWSErrorDetail detail;
654 detail.error_type = static_cast<int>(error.GetErrorType());
655 detail.message = std::string(FromAwsString(error.GetMessage()));
656 detail.exception_name = std::string(FromAwsString(error.GetExceptionName()));
657 detail.should_retry = error.ShouldRetry();
658 return detail;
659 }
660
661 std::shared_ptr<S3RetryStrategy> s3_retry_strategy_;
662};

Callers

nothing calls this directly

Calls 2

FromAwsStringFunction · 0.85
ShouldRetryMethod · 0.45

Tested by

no test coverage detected