pub fn other_err_with_source<T: OtherErr + WithSource, E: Source>(
context: &'static str,
description: &'static str,
source: E,
) -> TExpand description
Helper function to create a generic “other” error with a source.
This function is a convenience wrapper around the OtherErr and WithSource traits.
§Arguments
context- The context in which the error occurred.description- A description of the error.source- The source error to add.
§Returns
A new error instance of type T that implements both OtherErr and WithSource.