1313
1414
1515class LibTmuxException (Exception ):
16-
1716 """Base Exception for libtmux Errors."""
1817
1918
2019class TmuxSessionExists (LibTmuxException ):
21-
2220 """Session does not exist in the server."""
2321
2422
2523class TmuxCommandNotFound (LibTmuxException ):
26-
2724 """Application binary for tmux not found."""
2825
2926
@@ -47,12 +44,10 @@ def __init__(
4744
4845
4946class VersionTooLow (LibTmuxException ):
50-
5147 """Raised if tmux below the minimum version to use libtmux."""
5248
5349
5450class BadSessionName (LibTmuxException ):
55-
5651 """Disallowed session name for tmux (empty, contains periods or colons)."""
5752
5853 def __init__ (
@@ -65,40 +60,33 @@ def __init__(
6560
6661
6762class OptionError (LibTmuxException ):
68-
6963 """Root error for any error involving invalid, ambiguous or bad options."""
7064
7165
7266class UnknownOption (OptionError ):
73-
7467 """Option unknown to tmux show-option(s) or show-window-option(s)."""
7568
7669
7770class UnknownColorOption (UnknownOption ):
78-
7971 """Unknown color option."""
8072
8173 def __init__ (self , * args : object ):
8274 return super ().__init__ ("Server.colors must equal 88 or 256" )
8375
8476
8577class InvalidOption (OptionError ):
86-
8778 """Option invalid to tmux, introduced in tmux v2.4."""
8879
8980
9081class AmbiguousOption (OptionError ):
91-
9282 """Option that could potentially match more than one."""
9383
9484
9585class WaitTimeout (LibTmuxException ):
96-
9786 """Function timed out without meeting condition"""
9887
9988
10089class VariableUnpackingError (LibTmuxException ):
101-
10290 """Error unpacking variable"""
10391
10492 def __init__ (self , variable : t .Optional [t .Any ] = None , * args : object ):
@@ -119,28 +107,24 @@ def __init__(self, pane_id: t.Optional[str] = None, *args: object):
119107
120108
121109class WindowError (LibTmuxException ):
122-
123110 """Any type of window related error"""
124111
125112
126113class MultipleActiveWindows (WindowError ):
127-
128114 """Multiple active windows"""
129115
130116 def __init__ (self , count : int , * args : object ):
131117 return super ().__init__ (f"Multiple active windows: { count } found" )
132118
133119
134120class NoActiveWindow (WindowError ):
135-
136121 """No active window found"""
137122
138123 def __init__ (self , * args : object ):
139124 return super ().__init__ ("No active windows found" )
140125
141126
142127class NoWindowsExist (WindowError ):
143-
144128 """No windows exist for object"""
145129
146130 def __init__ (self , * args : object ):
0 commit comments