mapTo
Maps an Error of one generic type to an Error of another generic type.
This is useful when you need to convert an error result to match a different return type while preserving all the error details.
Return
A new LocalzResult.Error with the same error details but different generic type.