---
title: customError
framework: combine
role: symbol
role_heading: Instance Property
path: combine/publishers/timeout/customerror
---

# customError

A closure that executes if the publisher times out. The publisher sends the failure returned by this closure to the subscriber as the reason for termination.

## Declaration

```swift
let customError: (() -> Publishers.Timeout<Upstream, Context>.Failure)?
```

## See Also

### Inspecting publisher properties

- [upstream](combine/publishers/timeout/upstream.md)
- [interval](combine/publishers/timeout/interval.md)
- [scheduler](combine/publishers/timeout/scheduler.md)
- [options](combine/publishers/timeout/options.md)
