We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 959cdf0 commit 000a896Copy full SHA for 000a896
src/libtmux/exc.py
@@ -4,6 +4,7 @@
4
~~~~~~~~~~~
5
6
"""
7
+import typing as t
8
9
10
class LibTmuxException(Exception):
@@ -64,6 +65,19 @@ class WaitTimeout(LibTmuxException):
64
65
"""Function timed out without meeting condition"""
66
67
68
+class PaneError(LibTmuxException):
69
+ """Any type of pane related error"""
70
+
71
72
+class PaneNotFound(PaneError):
73
+ """Pane not found"""
74
75
+ def __init__(self, pane_id: t.Optional[str] = None, *args: object):
76
+ if pane_id is not None:
77
+ return super().__init__(f"Pane not found: {pane_id}")
78
+ return super().__init__("Pane not found")
79
80
81
class WindowError(LibTmuxException):
82
83
"""Any type of window related error"""
0 commit comments