On this page
TmuxError
- Package
- libtmux-swift
- Source
- Sources/LibTmux/TmuxError.swift
-
Everything a tmux operation can fail with.
Server/run(_:)-(TmuxCommand)hands every tmux status back as aTmuxReply. Higher-level operations that promise a decoded value throwcommandFailed(command:exitCode:reason:)when tmux rejects that read.
18 declared, 0 inherited
Members
- cancelled constant The task was cancelled. A cancelled request never reports an empty listing — that would be indistinguishable from a server with no sessions.
- commandFailed(command:exitCode:reason:) constant tmux received a typed command but rejected it.
- commandTooLarge(actualBytes:maximumBytes:) constant A direct tmux client cannot encode the command, so it was not submitted.
- connectionClosed constant A control-mode connection ended while a command was still waiting.
- decodingFailed(_:) constant tmux replied, but the reply did not match the requested projection.
- foreignServerValue constant A value from another endpoint cannot target this server.
- 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.
- invocationFailed(reason:) constant No usable reply was obtained after submission. Unless a narrower error says otherwise, the action may have reached tmux.
- 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.
- outputLimitExceeded(perStreamBytes:) constant A reply exceeded its finite per-stream memory boundary.
- 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.
- serverRestarted constant The reply arrived from a different server than the one the request was prepared against.
- staleServerValue constant A session-local target no longer names the object the value described.
- InvalidEndpoint enum
- !=(_:_:) function Returns a Boolean value indicating whether two values are not equal.
- localizedDescription property Retrieve the localized description for this error.