mapError

open fun <E2> mapError(filter: (E) -> E2): Future<V, E2>

If the Future returns an error, transform the error to another type.