# LibTmux.TmuxOptionException

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Exceptions/TmuxOptionException.cs#L9
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-tmuxoptionexception/

Thrown when tmux refuses an option name or value.

tmux distinguishes unknown, invalid, and ambiguous options, and which one it
says depends on its version rather than on anything a caller did. They are
one failure here, carrying tmux's own wording and the name that caused it.

## Members

### Other members

- `OptionName` (property): Gets the option tmux was asked about.
- `TmuxOptionException` (method): Initializes the exception for one rejected option.
