HNHacker News
TopNewBestAskShowJobs

andylokandy

39 karma · joined March 22, 2025

submissionscomments
andylokandy··on Stop Forwarding Errors, Start Designing Them
`Exn<T>` preserves the outmost error type and `Exn::<T>::as_error()` will give you the error just the way you want.

Traversing though the error tree is the worst case where the structured error has been bubbled up through layers until the one who are able to recover from it.