Zheaoli opened a new issue, #3487:
URL: https://github.com/apache/incubator-opendal/issues/3487

   For now, we have 15 different error codes in the rust core. FYI 
https://github.com/apache/incubator-opendal/blob/main/core/src/types/error.rs#L52-L108
   
   But in Python bindings, we mixed all the errors using an error message. It 
will make the binding easier when people want to handle those errors 
differently. FYI 
https://github.com/apache/incubator-opendal/blob/main/bindings/python/src/utils.rs#L87-L96
   
   Let's polish those error codes in the Python binding. Here are two way to 
make it done
   
   1. Make a single Exception for one error code.
   2. Store the error code in exception like we have made it done in the Java 
bindings. FYI 
https://github.com/apache/incubator-opendal/blob/main/bindings/java/src/error.rs#L48-L64


-- 
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]

Reply via email to