2 ms·
You may want to see the failure crate. In my practice most errors cannot be handled by a program and the only sensible thing to do is to pass an error descripti
by red75prime 8y ago
You may want to see the failure crate. In my practice most errors cannot be handled by a program and the only sensible thing to do is to pass an error description to a user or a programmer. Such fine-grained error type information as in your example is rarely useful. The failure crate provides a way to create detailed error descriptions (see `Context`) and fixes shortcomings of the standard Error trait.