---
title: Publishers.SwitchToLatest.Failure
framework: combine
role: symbol
role_heading: Type Alias
path: combine/publishers/switchtolatest/failure
---

# Publishers.SwitchToLatest.Failure

The kind of errors this publisher might publish.

## Declaration

```swift
typealias Failure = P.Failure
```

## Discussion

Discussion This publisher produces errors of the type produced by the upstream publisher-of-publishers.

## See Also

### Declaring supporting types

- [Publishers.SwitchToLatest.Output](combine/publishers/switchtolatest/output.md)
