tisonkun commented on issue #46:
URL:
https://github.com/apache/datasketches-rust/issues/46#issuecomment-3694830710
I can consider three ErrorKind now:
1. Serde error. Mainly for deserialization when hitting invalid data.
2. Argument error. We have some argument contracts on the construction of
sketches. Now we panic if the contract doesn't meet. But we may provide a
fallible constructor `try_new` and return `Error { Kind: ConfigInvalid }` on
unexpected arguments.
3. State error. More common internal error. For example, if the internal
state is invalid at some point. datasketches-java has `SketchesStateException`
for several cases.
@leerho @freakyzoidberg I'd like to learn from other impls' experience with
error handling and see how to integrate that experience in a Rust-idiomatic way.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]