# LibTmux.TmuxWindowException.TmuxWindowException

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

```
LibTmux.TmuxWindowException.TmuxWindowException(message: string, windowId: WindowId, innerException: Exception?)

LibTmux.TmuxWindowException.TmuxWindowException(message: string, windowId: WindowId, dispatch: TmuxDispatchState, innerException: Exception?)
```

Initializes the exception for one window.

## Parameters

- `message` (`string`): What was refused.
- `windowId` (`WindowId`): The window the request named.
- `innerException` (`Exception?`): The underlying failure, when any.
- `dispatch` (`TmuxDispatchState`): Whether the command reached tmux. (for `TmuxWindowException(message, windowId, dispatch, innerException)`)
