# LibTmux.TmuxProtocolException.TmuxProtocolException

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Exceptions/TmuxProtocolException.cs#L20
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-tmuxprotocolexception-tmuxprotocolexception/

```
LibTmux.TmuxProtocolException.TmuxProtocolException(message: string, dispatch: TmuxDispatchState, innerException: Exception?)

LibTmux.TmuxProtocolException.TmuxProtocolException(message: string, payload: string, dispatch: TmuxDispatchState, innerException: Exception?)
```

Initializes the exception for an unreadable answer.

## Parameters

- `message` (`string`): What could not be read.
- `dispatch` (`TmuxDispatchState`): Whether tmux had already acted.
- `innerException` (`Exception?`): The failure underneath, when there is one.
- `payload` (`string`): The text that could not be read. (for `TmuxProtocolException(message, payload, dispatch, innerException)`)
