Skip to content

Commit ba08583

Browse files
committed
perf(exception): add some exception type and fix some inherit mistakes
1 parent ea21903 commit ba08583

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/diceutils/exceptions.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ class CommandRequired(DiceutilsException):
1414
"""Raises when required command not provided."""
1515

1616

17-
class TooManyCardsError(Exception):
18-
"""Raises when provided number bigger than expected."""
17+
class TooManyCardsError(DiceutilsException):
18+
"""Raises when provided index number bigger than expected."""
19+
20+
21+
class TooManyLoggersError(DiceutilsException):
22+
"""Raises when loggers count more than expected."""
1923

2024

2125
class UnkownMode(DiceutilsException):

0 commit comments

Comments
 (0)