# io.github.libtmux.exception.ServerClosedException

- **Module:** io.github.libtmux.exception
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/f56392b5d9bc7f1f9c1631842333fb90f3d82d40/libtmux/src/main/java/io/github/libtmux/exception/ServerClosedException.java#L13
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-exception-serverclosedexception-serverclosedexception/

A handle was used after the {@link io.github.libtmux.Server} it belongs to was closed.

Programmer error, so deliberately outside {@link LibTmuxException}'s sealed tree: an exhaustive
match over operational failures should not have to decide about a lifecycle bug. {@link
#outcome()} says whether tmux may have run the call that raced the close.

## Members

### Other members

- `outcome` (method): {@link DispatchOutcome#NOT_DISPATCHED} when the server was closed before the call reached tmux, {@link DispatchOutcome#UNKNOWN} when a concurrent close ended a tmux already running it.
- `ServerClosedException` (method)
