Closed thombles closed 3 years ago
Since I first wrote these errors I've become a fan of the thiserror-for-libraries and anyhow-for-applications approach to generating Error types.
thiserror
anyhow
Error
thiserror doesn't offer quite as much functionality, particularly the ensure! macro, so I've had to be a little more explicit, which I don't mind.
ensure!
Since I first wrote these errors I've become a fan of the
thiserror
-for-libraries andanyhow
-for-applications approach to generatingError
types.thiserror
doesn't offer quite as much functionality, particularly theensure!
macro, so I've had to be a little more explicit, which I don't mind.