Converts any failure from the upstream publisher into a new error.
- iOS 13.0+Beta
- macOS 10.15+Beta
- Mac Catalyst 13.0+Beta
- tvOS 13.0+Beta
- watchOS 6.0+Beta
- Xcode 11.0+Beta
A closure that takes the upstream failure as a parameter and returns a new error for the publisher to terminate with.
A publisher that replaces any upstream failure with a new error produced by the
Until the upstream publisher finishes normally or fails with an error, the returned publisher republishes all the elements it receives.