---
title: handler
framework: combine
role: symbol
role_heading: Instance Property
path: combine/publishers/catch/handler
---

# handler

A closure that accepts the upstream failure as input and returns a publisher to replace the upstream publisher.

## Declaration

```swift
let handler: (Upstream.Failure) -> NewPublisher
```

## See Also

### Inspecting publisher properties

- [upstream](combine/publishers/catch/upstream.md)
