Map Err result to new error
Err
The error type of the Err result.
The value type of the new Err result.
Result to map
Mapping function to run on err result. The value parameter will be of type unknown.
value
unknown
Result containing mapped error
Map
Err
result to new error