Skip to content

Commit 3a388fd

Browse files
committed
add new option and version exceptions
1 parent d6cc3a7 commit 3a388fd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

libtmux/exc.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ class TmuxCommandNotFound(LibTmuxException):
2727
pass
2828

2929

30+
class VersionTooLow(LibTmuxException):
31+
32+
"""Raised if tmux below the minimum version to use libtmux."""
33+
34+
pass
35+
36+
3037
class BadSessionName(LibTmuxException):
3138

3239
"""Disallowed session name for tmux (empty, contains periods or colons)."""
@@ -53,3 +60,10 @@ class InvalidOption(OptionError):
5360
"""Option invalid to tmux, introduced in tmux v2.4."""
5461

5562
pass
63+
64+
65+
class AmbiguousOption(OptionError):
66+
67+
"""Option that could potentially match more than one."""
68+
69+
pass

0 commit comments

Comments
 (0)