Skip to content

Commit da98093

Browse files
committed
feat(exc): Add ({Window,Pane})AdjustmentDirectionRequiresAdjustment
1 parent d27bb3a commit da98093

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/libtmux/exc.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,26 @@ class NoWindowsExist(WindowError):
132132

133133
def __init__(self, *args: object):
134134
return super().__init__("No windows exist for object")
135+
136+
137+
class AdjustmentDirectionRequiresAdjustment(LibTmuxException, ValueError):
138+
"""If *adjustment_direction* is set, *adjustment* must be set."""
139+
140+
def __init__(self) -> None:
141+
super().__init__("adjustment_direction requires adjustment")
142+
143+
144+
class WindowAdjustmentDirectionRequiresAdjustment(
145+
WindowError, AdjustmentDirectionRequiresAdjustment
146+
):
147+
"""ValueError for :meth:`libtmux.Window.resize_window`."""
148+
149+
pass
150+
151+
152+
class PaneAdjustmentDirectionRequiresAdjustment(
153+
WindowError, AdjustmentDirectionRequiresAdjustment
154+
):
155+
"""ValueError for :meth:`libtmux.Pane.resize_pane`."""
156+
157+
pass

0 commit comments

Comments
 (0)