crepererum commented on issue #5345: URL: https://github.com/apache/arrow-rs/issues/5345#issuecomment-1916975966
> > Then why do we have error variants at all? > > Some variants we expose don't have corresponding `ErrorKind`, e.g. `Precondition`, but I have debated exposing `io::Error` in the past Then I think we shouldn't use `ErrorKind`. While it's non-breaking, it creates a second error enumeration that is also partly incomplete. To work with the errors, you then have to handle both enumerations (the actual error enum and the kind) and both only tell you half of the story or may even provide conflicting information. -- 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]
