awslabs / aws-crt-python

Python bindings for the AWS Common Runtime
Apache License 2.0
87 stars 43 forks source link

Add S3ResponseError.operation_name #530

Closed graebm closed 10 months ago

graebm commented 10 months ago

This hooks up functionality from: https://github.com/awslabs/aws-c-s3/pull/377

Issue: If an AWS SDK is using the CRT S3 client, it was difficult to map CRT exceptions to SDK exceptions since it wasn't clear exactly which S3 HTTP request failed (A CRT S3 request might make several HTTP requests under the hood)

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.