One Logo Pool Ball
Combine · IOS API REFERENCE

Publishers.SetFailureType

struct · iOS 13.0+ · SDK 27.1

struct SetFailureType<Upstream, Failure> where Upstream : Publisher, Failure : Error, Upstream.Failure == Never

A publisher that appears to send a specified failure type. The publisher can't actually fail with the specified type and finishes normally. Use this publisher type when you need to match the error types for two mismatched publishers.

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.SetFailureType.upstream

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

Publishers.SetFailureType.init(upstream:)

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

Publishers.SetFailureType.receive(subscriber:)

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

Publishers.SetFailureType.setFailureType(to:)

Passing a Swift type itself is not supported.

All Combine types →