I have been using thiserror, and somtimes snafu, for error handling in libraries and anyhow for error handling in applications.

This blog post describes a new library, Stackerror, that looks interesting. The post also gives a good overview of error handling in Rust.

  • lad@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    20 days ago

    I’m not entirely sold on the idea, because the article shows no example of defining and using special error codes. It leaves an impression that if anything you want to recover from is IO and HTTP (no HTTP/2, too) then it’s all good.

    Still it looks interesting and I will take a deeper look into it later