kyle-mccarthy opened a new pull request, #6158:
URL: https://github.com/apache/arrow-rs/pull/6158
# Which issue does this PR close?
Closes #5345.
# Rationale for this change
Exposing the client error publicly allows accessing the status code of the
response associated with the error. This gives the user more control over error
handling, such as special handling for authn/authz errors.
```
let err = store.head(&path).await.unwrap_err();
let source = err
.source()
.unwrap()
.downcast_ref::<object_store::ClientError>().unwrap();
let status = source.status().unwrap();
```
# What changes are included in this PR?
expose `client::Error as ClientError`
# Are there any user-facing changes?
Yes
# Notes
- Should the error type or its variants be renamed?
- Alternatively, a `PermissionDenied` variant could be added to
`crate::Error`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]