Exceptions - tmuxp.exc

Exceptions for tmuxp.

exception tmuxp.exc.TmuxpException
exception[source]
exception[source]
exception tmuxp.exc.TmuxpException

Bases: Exception

Base Exception for Tmuxp Errors.

exception tmuxp.exc.WorkspaceError
exception[source]
exception[source]
exception tmuxp.exc.WorkspaceError

Bases: TmuxpException

Error parsing tmuxp workspace data.

exception tmuxp.exc.SessionNotFound
exception[source]
exception[source]
exception tmuxp.exc.SessionNotFound

Bases: TmuxpException

tmux session not found.

exception tmuxp.exc.WindowNotFound
exception[source]
exception[source]
exception tmuxp.exc.WindowNotFound

Bases: TmuxpException

tmux window not found.

exception tmuxp.exc.PaneNotFound
exception[source]
exception[source]
exception tmuxp.exc.PaneNotFound

Bases: TmuxpException

tmux pane not found.

exception tmuxp.exc.EmptyWorkspaceException
exception[source]
exception[source]
exception tmuxp.exc.EmptyWorkspaceException

Bases: WorkspaceError

Workspace file is empty.

exception tmuxp.exc.SessionMissingWorkspaceException
exception[source]
exception[source]
exception tmuxp.exc.SessionMissingWorkspaceException

Bases: WorkspaceError, ObjectDoesNotExist

Session missing while loading tmuxp workspace.

exception tmuxp.exc.ActiveSessionMissingWorkspaceException
exception[source]
exception[source]
exception tmuxp.exc.ActiveSessionMissingWorkspaceException

Bases: WorkspaceError

Active session cannot be found while loading tmuxp workspace.

exception tmuxp.exc.WorkspaceBuilderError
exception[source]
exception[source]
exception tmuxp.exc.WorkspaceBuilderError

Bases: WorkspaceError

Base error for resolving and validating a workspace builder.

exception tmuxp.exc.WorkspaceBuilderNotFound
exception[source]
exception[source]
exception tmuxp.exc.WorkspaceBuilderNotFound

Bases: WorkspaceBuilderError

Configured workspace_builder could not be resolved.

>>> print(WorkspaceBuilderNotFound("nope"))
Workspace builder 'nope' could not be found....
exception tmuxp.exc.WorkspaceBuilderImportError
exception[source]
exception[source]
exception tmuxp.exc.WorkspaceBuilderImportError

Bases: WorkspaceBuilderError

Configured workspace_builder failed to import.

>>> print(WorkspaceBuilderImportError("pkg:B"))
Could not import workspace builder 'pkg:B'....
exception tmuxp.exc.InvalidWorkspaceBuilder
exception[source]
exception[source]
exception tmuxp.exc.InvalidWorkspaceBuilder

Bases: WorkspaceBuilderError

Resolved workspace_builder object is not a usable builder.

>>> print(InvalidWorkspaceBuilder("pkg:B"))
'pkg:B' is not a valid workspace builder.
exception tmuxp.exc.WorkspaceBuilderPathError
exception[source]
exception[source]
exception tmuxp.exc.WorkspaceBuilderPathError

Bases: WorkspaceBuilderError

A workspace_builder_paths entry is not a usable directory.

>>> print(WorkspaceBuilderPathError("/x"))
workspace_builder_paths entry is invalid: /x....
exception tmuxp.exc.InvalidWorkspaceBuilderOption
exception[source]
exception[source]
exception tmuxp.exc.InvalidWorkspaceBuilderOption

Bases: WorkspaceBuilderError

A workspace_builder_options value is invalid.

>>> print(InvalidWorkspaceBuilderOption("bad"))
Invalid workspace_builder_options: bad
exception tmuxp.exc.TmuxpPluginException
exception[source]
exception[source]
exception tmuxp.exc.TmuxpPluginException

Bases: TmuxpException

Base Exception for Tmuxp Errors.

exception tmuxp.exc.BeforeLoadScriptNotExists
exception[source]
exception[source]
exception tmuxp.exc.BeforeLoadScriptNotExists

Bases: OSError

Raises if shell script could not be found.

exception tmuxp.exc.BeforeLoadScriptError
exception[source]
exception[source]
exception tmuxp.exc.BeforeLoadScriptError

Bases: Exception

Shell script execution error.

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