Exceptions

exception delb.exceptions.AmbiguousTreeError(message: str)[source]

Bases: DelbBaseException

Raised 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: Exception

Base 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, RuntimeError

Raised when a code path that is not expected to be executed is reached.

exception delb.exceptions.InvalidOperation[source]

Bases: DelbBaseException

Raised when an invalid operation is attempted by the client code.

exception delb.exceptions.ParsingError[source]

Bases: DelbBaseException

Base class for parsing related exceptions.

exception delb.exceptions.ParsingProcessingError[source]

Bases: ParsingError

Raised when a parsing operation cannot proceed in the actual context.

exception delb.exceptions.ParsingValidityError[source]

Bases: ParsingError

Raised non-well-formed phenomena are encountered.

exception delb.exceptions.XPathEvaluationError(message: str)[source]

Bases: DelbBaseException

Raised 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: DelbBaseException

Raised when an XPath expression can’t be parsed.

exception delb.exceptions.XPathUnsupportedStandardFeature(position: int, feature_description: str)[source]

Bases: XPathParsingError

Raised when an unsupported XPath expression feature is recognized.