# LibTmux.TmuxSessionExistsException

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

Thrown when a session name is already taken.

Distinct from a generic command failure because a caller can act on it:
pick another name, or ask tmux to replace the existing session.

## Members

### Other members

- `SessionName` (property): Gets the session name that is already in use.
- `TmuxSessionExistsException` (method): Initializes the exception for one taken session name.
