Cheappie commented on issue #3285:
URL: https://github.com/apache/arrow-rs/issues/3285#issuecomment-1344131859
Sure It has that kind of support. My point was It would be interesting
pattern if libraries would provide enumeration of known errors that is hidden
behind dynamic error that allows enriching context. `Anyhow` on It's own
doesn't know what type of errors we might produce, so any caller that would
receive `anyhow::Error` have to probe It with several downcasts whether it is
`io err` or `malformed url error`. In the above example we provide enumeration
`enum Error<'a> { IO(&'a std::io::Error) }`, so downcasts are actually hidden
and caller can jump into dealing with error right away
--
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]