|
|
|
|
|
by chaorace
1340 days ago
|
|
Regarding citation #1: I'm a Rust learner myself, so this is something that's rather salient for me. What do you think about the "boxing errors[1]" approach? This strikes me as one possible way you could bubble up dependency errors without being forced to deal with type conversions. [1]: https://doc.rust-lang.org/rust-by-example/error/multiple_err... |
|
> I now think you should either expose only a string message your user can just show their end user or an error that's much more specific so they can write code that intelligently responds to it.
a boxed trait object is the main way to implement an error that merely conveys a string message.