Closed tzemanovic closed 2 weeks ago
a new alternative that improves many things in error handling: https://github.com/hashintel/hash/tree/main/libs/error-stack
another new crate that provides nice error handling ergonomics without giving up type-safety https://crates.io/crates/terrors (can be used in combination with some other crate)
The
std::io::Error
has the same design considerations that we want forstorage_api::Error
and is familiar to Rust devs, so it might be better to use it than to re-invent our own. Additionally,std::io::Error
is well suited for no-std (wasm) env too.