# io.github.libtmux.control.EventSubscription.cause

- **Module:** io.github.libtmux.control
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/f56392b5d9bc7f1f9c1631842333fb90f3d82d40/libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java#L134
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-control-eventsubscription-eventsubscription-cause/

```
io.github.libtmux.control.EventSubscription.cause() -> Optional<Throwable>
```

Why this subscription ended, when the control client ended it.

Empty when the subscription is still open, and empty when the caller closed it. A client
that died sets this before the read returns empty.
