Generic Instance Method

setFailureType(to:)

Changes the failure type declared by the upstream publisher.

Declaration

func setFailureType<E>(to failureType: E.Type) -> Publishers.SetFailureType<Record<Output, Failure>, E> where E : Error
Available when Failure is Never.

Parameters

failureType

The Failure type presented by this publisher.

Return Value

A publisher that appears to send the specified failure type.