Exceptions - tmuxp.exc#

Exceptions for tmuxp.

exception tmuxp.exc.TmuxpException[source]#

Bases: Exception

Base Exception for Tmuxp Errors.

exception tmuxp.exc.WorkspaceError[source]#

Bases: TmuxpException

Error parsing tmuxp workspace data.

exception tmuxp.exc.SessionNotFound(session_target=None, *args, **kwargs)[source]#

Bases: TmuxpException

tmux session not found.

exception tmuxp.exc.WindowNotFound(window_target=None, *args, **kwargs)[source]#

Bases: TmuxpException

tmux window not found.

exception tmuxp.exc.PaneNotFound(pane_target=None, *args, **kwargs)[source]#

Bases: TmuxpException

tmux pane not found.

exception tmuxp.exc.EmptyWorkspaceException(*args, **kwargs)[source]#

Bases: WorkspaceError

Workspace file is empty.

exception tmuxp.exc.SessionMissingWorkspaceException(*args, **kwargs)[source]#

Bases: WorkspaceError, ObjectDoesNotExist

Session missing while loading tmuxp workspace.

exception tmuxp.exc.ActiveSessionMissingWorkspaceException(*args, **kwargs)[source]#

Bases: WorkspaceError

Active session cannot be found while loading tmuxp workspace.

exception tmuxp.exc.TmuxpPluginException[source]#

Bases: TmuxpException

Base Exception for Tmuxp Errors.

exception tmuxp.exc.BeforeLoadScriptNotExists(*args, **kwargs)[source]#

Bases: OSError

Raises if shell script could not be found.

exception tmuxp.exc.BeforeLoadScriptError(returncode, cmd, output=None)[source]#

Bases: Exception

Shell script execution error.

Replaces subprocess.CalledProcessError for tmuxp.util.run_before_script().