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

Method DetailToError

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

Source from the content-addressed store, hash-verified

202 private:
203 std::shared_ptr<Aws::Client::RetryStrategy> retry_strategy_;
204 static Aws::Client::AWSError<Aws::Client::CoreErrors> DetailToError(
205 const S3RetryStrategy::AWSErrorDetail& detail) {
206 auto exception_name = ToAwsString(detail.exception_name);
207 auto message = ToAwsString(detail.message);
208 auto errors = Aws::Client::AWSError<Aws::Client::CoreErrors>(
209 static_cast<Aws::Client::CoreErrors>(detail.error_type), exception_name, message,
210 detail.should_retry);
211 return errors;
212 }
213};
214
215std::shared_ptr<S3RetryStrategy> S3RetryStrategy::GetAwsDefaultRetryStrategy(

Callers

nothing calls this directly

Calls 1

ToAwsStringFunction · 0.85

Tested by

no test coverage detected