# io.github.libtmux.exception.CommandRejectedException

- **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/CommandRejectedException.java#L12
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-exception-commandrejectedexception-commandrejectedexception/

tmux ran a command to completion and refused it.

The request reached a live server and tmux answered no: a duplicate session name, a target it
cannot find, an option it does not know. Resending the same command gets the same answer, so read
{@link #errorLines()} and change the request.

## Members

### Other members

- `CommandRejectedException` (method): A refusal of {@code command}, with tmux's exit status and the lines it printed.
