# TmuxError

- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** enum
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/TmuxError.swift#L6
- **Page:** https://libtmux.org/en/swift/latest/reference/tmuxerror/

Everything a tmux operation can fail with.

``Server/run(_:)-(TmuxCommand)`` hands every tmux status back as a
``TmuxReply``. Higher-level operations that promise a decoded value throw
``commandFailed(command:exitCode:reason:)`` when tmux rejects that read.

## Members

- `!=(_:_:)` (function): Returns a Boolean value indicating whether two values are not equal.
- `localizedDescription` (property): Retrieve the localized description for this error.
- `processLaunchFailed(reason:)` (constant): The tmux client process was never started, so the requested command cannot have reached a daemon.
- `requestNotSubmitted` (constant): A control connection closed before the command was enqueued. Retrying cannot duplicate the requested action because tmux never received it.
- `invocationFailed(reason:)` (constant): No usable reply was obtained after submission. Unless a narrower error says otherwise, the action may have reached tmux.
- `commandTooLarge(actualBytes:maximumBytes:)` (constant): A direct tmux client cannot encode the command, so it was not submitted.
- `commandFailed(command:exitCode:reason:)` (constant): tmux received a typed command but rejected it.
- `outputLimitExceeded(perStreamBytes:)` (constant): A reply exceeded its finite per-stream memory boundary.
- `invalidEndpoint(_:)` (constant): The endpoint is not addressable. A UNIX socket path has a hard length limit far shorter than the filesystem's, and exceeding it fails at bind time rather than at construction.
- `decodingFailed(_:)` (constant): tmux replied, but the reply did not match the requested projection.
- `serverRestarted` (constant): The reply arrived from a different server than the one the request was prepared against.
- `foreignServerValue` (constant): A value from another endpoint cannot target this server.
- `staleServerValue` (constant): A session-local target no longer names the object the value described.
- `cancelled` (constant): The task was cancelled. A cancelled request never reports an empty listing — that would be indistinguishable from a server with no sessions.
- `connectionClosed` (constant): A control-mode connection ended while a command was still waiting.
- `notificationBufferOverflow(limit:)` (constant): An observer did not drain control notifications before its finite buffer filled. Earlier buffered notifications remain readable.
- `outputContinuityLost` (constant): A pane changed beyond the retained checkpoint while output was being watched, so new rows cannot be separated from rows already seen.
- `InvalidEndpoint` (enum)
