Closed cyphar closed 3 months ago
Just in case you haven't seen this blog post pass by, here's a nice overview/comparison of the various available Rust error handling crates.
Based on my experience with https://github.com/cyphar/paperback, I suspect thiserror
is going to be nicer. We will need to roll our own backtrace collection code though.
Done in 500b5ff9157519639395de7384424b621ae8b7c3.
This is basically a reboot of the
snafu
porting effort. I will need to consider this for a bit longer, but I like thaterror-chain
has a much more opaque-to-the-user API -- all that's exposed isErrorKind
. Also theforeign_links
feature composes much better thansnafu
. But I'll need to think about this a lot more (and probably create some test examples).