Skip to content

Commit 7dd240f

Browse files
committed
chore: enable catching all TypeID exceptions
Subclasses Exception classes from a single base class to enable users to catch a single Exception type for all TypeID errors.
1 parent 0f27057 commit 7dd240f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

typeid/errors.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ class TypeIDException(Exception):
22
...
33

44

5-
class PrefixValidationException(Exception):
5+
class PrefixValidationException(TypeIDException):
66
...
77

88

9-
class SuffixValidationException(Exception):
9+
class SuffixValidationException(TypeIDException):
1010
...
1111

1212

13-
class InvalidTypeIDStringException(Exception):
13+
class InvalidTypeIDStringException(TypeIDException):
1414
...

0 commit comments

Comments
 (0)