Exceptions¶
- exception delb.exceptions.AmbiguousTreeError(message: str)[source]¶
Bases:
DelbBaseExceptionRaised when a single node shall be fetched or created by an XPath expression in a tree where the target position can’t be clearly determined.
- exception delb.exceptions.DelbBaseException[source]¶
Bases:
ExceptionBase class for all of delb’s exceptions.
- exception delb.exceptions.FailedDocumentLoading(source: Any, excuses: dict[TypeAliasForwardRef('delb.typing.Loader'), str | Exception])[source]¶
Bases:
DelbBaseException
- exception delb.exceptions.InvalidCodePath[source]¶
Bases:
DelbBaseException,RuntimeErrorRaised when a code path that is not expected to be executed is reached.
- exception delb.exceptions.InvalidOperation[source]¶
Bases:
DelbBaseExceptionRaised when an invalid operation is attempted by the client code.
- exception delb.exceptions.ParsingError[source]¶
Bases:
DelbBaseExceptionBase class for parsing related exceptions.
- exception delb.exceptions.ParsingProcessingError[source]¶
Bases:
ParsingErrorRaised when a parsing operation cannot proceed in the actual context.
- exception delb.exceptions.ParsingValidityError[source]¶
Bases:
ParsingErrorRaised non-well-formed phenomena are encountered.
- exception delb.exceptions.XPathEvaluationError(message: str)[source]¶
Bases:
DelbBaseExceptionRaised when an XPath expression can’t be properly evaluated.
- exception delb.exceptions.XPathParsingError(expression: str | None = None, position: int | None = None, message: str | None = None)[source]¶
Bases:
DelbBaseExceptionRaised when an XPath expression can’t be parsed.
- exception delb.exceptions.XPathUnsupportedStandardFeature(position: int, feature_description: str)[source]¶
Bases:
XPathParsingErrorRaised when an unsupported XPath expression feature is recognized.