Converts any failure from the upstream publisher into a new error.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
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.