map_err
Description:
If this result holds an exception, maps the exception to another exception by applying the given function to the exception, otherwise the returned result holds the value of this result.
Parameters:
func |
a function applied to exception |
Returns:
the mapped result |