News for hackers. Stuff that matters.
Re:Why Use Structured Errors in Rust Applications? by Arnavion on Sunday June 01, 2025 @01:55PM (#44152618)
The better way is to do what I wrote in the first paragraph; ie each layer gets its own error type with a bespoke context type. The second paragraph is about the case where you want to use a single error type.

There are no comments on this comment yet.