Skip to content

Commit 05f06cf

Browse files
committed
feat(exc): Add RequiresDigitOrPercentage
1 parent da98093 commit 05f06cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/libtmux/exc.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,10 @@ class PaneAdjustmentDirectionRequiresAdjustment(
155155
"""ValueError for :meth:`libtmux.Pane.resize_pane`."""
156156

157157
pass
158+
159+
160+
class RequiresDigitOrPercentage(LibTmuxException, ValueError):
161+
"""Requires digit (int or str digit) or a percentage."""
162+
163+
def __init__(self) -> None:
164+
super().__init__("Requires digit (int or str digit) or a percentage.")

0 commit comments

Comments
 (0)