One Logo Pool Ball
Combine · IOS API REFERENCE

Publishers.TryCatch

struct · iOS 13.0+ · SDK 27.1

struct TryCatch<Upstream, NewPublisher> where Upstream : Publisher, NewPublisher : Publisher, Upstream.Output == NewPublisher.Output

A publisher that handles errors from an upstream publisher by replacing the failed publisher with another publisher or producing a new error. Because this publisher’s handler can throw an error, ``Publishers/TryCatch`` defines its ``Publisher/Failure`` type as `Error`. This is different from ``Publishers/Catch``, which gets its failure type from the replacement publisher.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

4 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

Publishers.TryCatch.upstream

This declaration needs Swift generic type arguments. (no canonical witness for Upstream)

Publishers.TryCatch.handler

This declaration needs Swift generic type arguments. (no canonical witness for Upstream.Failure)

Publishers.TryCatch.init(upstream:handler:)

This declaration needs Swift generic type arguments. (no canonical witness for Upstream)

Publishers.TryCatch.receive(subscriber:)

This declaration needs Swift generic type arguments. (no canonical witness for S)

All Combine types →