Skip to content

Commit d5024d1

Browse files
committed
exceptions: Adds missing docstrings
1 parent 80c57a5 commit d5024d1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

_delb/exceptions.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525

2626
class DelbBaseException(Exception):
27+
"""Base class for all of delb's exceptions."""
28+
2729
pass
2830

2931

@@ -62,18 +64,26 @@ class InvalidOperation(DelbBaseException):
6264

6365

6466
class ParsingError(DelbBaseException):
67+
"""Base class for parsing related exceptions."""
68+
6569
pass
6670

6771

6872
class ParsingProcessingError(ParsingError):
73+
"""Raised when a parsing operation cannot proceed in the actual context."""
74+
6975
pass
7076

7177

7278
class ParsingValidityError(ParsingError):
79+
"""Raised non-well-formed phenomena are encountered."""
80+
7381
pass
7482

7583

7684
class XPathEvaluationError(DelbBaseException):
85+
"""Raised when an XPath expression can't be properly evaluated."""
86+
7787
def __init__(self, message: str):
7888
super().__init__(message)
7989

0 commit comments

Comments
 (0)