ExceptionsΒΆ

libtmux exceptions.

libtmux.excΒΆ

exception libtmux.exc.LibTmuxException
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.LibTmuxException
ΒΆ

Bases: Exception

Base Exception for libtmux Errors.

exception libtmux.exc.DeprecatedError
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.DeprecatedError
ΒΆ

Bases: LibTmuxException

Raised when a deprecated function, method, or parameter is used.

This exception provides clear guidance on what to use instead.

Parameters:
  • deprecated (str) – The name of the deprecated API (e.g., β€œPane.resize_pane()”)

  • replacement (str) – The recommended replacement API to use instead

  • version (str) – The version when the API was deprecated (e.g., β€œ0.28.0”)

exception libtmux.exc.TmuxSessionExists
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.TmuxSessionExists
ΒΆ

Bases: LibTmuxException

Session does not exist in the server.

exception libtmux.exc.TmuxCommandNotFound
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.TmuxCommandNotFound
ΒΆ

Bases: LibTmuxException

Application binary for tmux not found.

exception libtmux.exc.TmuxObjectDoesNotExist
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.TmuxObjectDoesNotExist
ΒΆ

Bases: ObjectDoesNotExist

The query returned multiple objects when only one was expected.

exception libtmux.exc.VersionTooLow
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.VersionTooLow
ΒΆ

Bases: LibTmuxException

Raised if tmux below the minimum version to use libtmux.

exception libtmux.exc.BadSessionName
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.BadSessionName
ΒΆ

Bases: LibTmuxException

Disallowed session name for tmux (empty, contains periods or colons).

exception libtmux.exc.OptionError
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.OptionError
ΒΆ

Bases: LibTmuxException

Root error for any error involving invalid, ambiguous or bad options.

exception libtmux.exc.UnknownOption
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.UnknownOption
ΒΆ

Bases: OptionError

Option unknown to tmux show-option(s) or show-window-option(s).

exception libtmux.exc.UnknownColorOption
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.UnknownColorOption
ΒΆ

Bases: UnknownOption

Unknown color option.

exception libtmux.exc.InvalidOption
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.InvalidOption
ΒΆ

Bases: OptionError

Option invalid to tmux.

exception libtmux.exc.AmbiguousOption
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.AmbiguousOption
ΒΆ

Bases: OptionError

Option that could potentially match more than one.

exception libtmux.exc.WaitTimeout
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.WaitTimeout
ΒΆ

Bases: LibTmuxException

Function timed out without meeting condition.

exception libtmux.exc.VariableUnpackingError
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.VariableUnpackingError
ΒΆ

Bases: LibTmuxException

Error unpacking variable.

exception libtmux.exc.PaneError
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.PaneError
ΒΆ

Bases: LibTmuxException

Any type of pane related error.

exception libtmux.exc.PaneNotFound
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.PaneNotFound
ΒΆ

Bases: PaneError

Pane not found.

exception libtmux.exc.WindowError
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.WindowError
ΒΆ

Bases: LibTmuxException

Any type of window related error.

exception libtmux.exc.MultipleActiveWindows
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.MultipleActiveWindows
ΒΆ

Bases: WindowError

Multiple active windows.

exception libtmux.exc.NoActiveWindow
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.NoActiveWindow
ΒΆ

Bases: WindowError

No active window found.

exception libtmux.exc.NoWindowsExist
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.NoWindowsExist
ΒΆ

Bases: WindowError

No windows exist for object.

exception libtmux.exc.AdjustmentDirectionRequiresAdjustment
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.AdjustmentDirectionRequiresAdjustment
ΒΆ

Bases: LibTmuxException, ValueError

If adjustment_direction is set, adjustment must be set.

exception libtmux.exc.WindowAdjustmentDirectionRequiresAdjustment
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.WindowAdjustmentDirectionRequiresAdjustment
ΒΆ

Bases: WindowError, AdjustmentDirectionRequiresAdjustment

ValueError for libtmux.Window.resize_window().

exception libtmux.exc.PaneAdjustmentDirectionRequiresAdjustment
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.PaneAdjustmentDirectionRequiresAdjustment
ΒΆ
exception libtmux.exc.RequiresDigitOrPercentage
ΒΆ
exception[source]
exception[source]
exception libtmux.exc.RequiresDigitOrPercentage
ΒΆ

Bases: LibTmuxException, ValueError

Requires digit (int or str digit) or a percentage.