# LibTmux.TmuxProtocolException

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Exceptions/TmuxProtocolException.cs#L14
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-tmuxprotocolexception/

Reports an answer from tmux this library could not read.

Distinct from <see cref="TmuxCommandException" />, which means tmux reported
a failure it understood. This means tmux reported success, or sent an event,
and the bytes did not decode into anything the library can use: a row
missing a field it must have, a framed value that never ended, a
control-mode block guard out of place. A caller cannot correct one of these
by changing its arguments, so the useful response is to report it rather
than retry it — and <see cref="LibTmuxException.Dispatch" /> says whether a
retry would repeat a side effect anyway.

## Members

- `TmuxProtocolException` (method): Initializes the exception for an unreadable answer.
- `Payload` (property): Gets what tmux sent that could not be read.
