3 ms·
Unless you need a custom error type for some particular intentional reason, it is currently very simple to instead throw Box<Error> to integrate all Errors into
by tatterdemalion 11y ago
Unless you need a custom error type for some particular intentional reason, it is currently very simple to instead throw Box<Error> to integrate all Errors into one type. I have not needed to unify error types into a custom type.
Rust's error handling can be handled in a much cleaner and more expressive way than exceptions are handled and they are fully integrated into the type system. I don't know what advantages exceptions have.