Exceptions

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

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.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception delb.exceptions.DelbBaseException[source]
add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception delb.exceptions.FailedDocumentLoading(source: Any, excuses: dict[delb.typing.Loader, str | Exception])[source]
add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception delb.exceptions.InvalidCodePath[source]

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

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception delb.exceptions.InvalidOperation[source]

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

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

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

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception delb.exceptions.XPathParsingError(expression: str | None = None, position: int | None = None, message: str | None = None)[source]

Raised when an XPath expression can’t be parsed.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

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

Raised when an unsupported XPath expression feature is recognized.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.