Xuanwo commented on issue #3487:
URL:
https://github.com/apache/incubator-opendal/issues/3487#issuecomment-1793646512
I'm not familiar in Python's error handling. What method do Python users
typically prefer? Also, how will users utilize our exception?
AWS S3 pyhon's sdk seems have different `exceptions`:
```python
import botocore
import boto3
client = boto3.resource('s3')
try:
client.create_bucket(BucketName='myTestBucket')
except client.meta.client.exceptions.BucketAlreadyExists as err:
print("Bucket {} already
exists!".format(err.response['Error']['BucketName']))
raise err
```
ref:
https://boto3.amazonaws.com/v1/documentation/api/latest/guide/error-handling.html#catching-exceptions-when-using-a-resource-client
--
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]