Closed elichai closed 1 year ago
Adding Debug for ErrorSS allows to unwrap a Result<T, ErrorSS>. and implementing the error trait allows those errors to be propagated via ? when using generic error types (like Box<dyn Error> or anyhow::Error / eyre::Report etc.)
ErrorSS
Result<T, ErrorSS>
?
Box<dyn Error>
anyhow::Error
eyre::Report
Adding Debug for
ErrorSS
allows to unwrap aResult<T, ErrorSS>
. and implementing the error trait allows those errors to be propagated via?
when using generic error types (likeBox<dyn Error>
oranyhow::Error
/eyre::Report
etc.)