rics.translation.fetching.exceptions#

Errors and warnings related to fethcing.

Exceptions

DuplicateSourceError

Multiple translations for the same source received.

DuplicateSourceWarning

Duplicate sources detected.

FetcherError

Base class for Fetcher exceptions.

FetcherWarning

Base class for Fetcher warnings.

ForbiddenOperationError(operation[, reason])

Exception indicating that the Fetcher does not support an operation.

ImplementationError

An underlying implementation did something wrong.

UnknownIdError

Caller requested unknown id(s).

UnknownPlaceholderError

Caller requested unknown placeholder name(s).

UnknownSourceError(unknown_sources, sources)

Caller requested unknown source(s).

exception FetcherWarning[source]#

Bases: RuntimeWarning

Base class for Fetcher warnings.

exception FetcherError[source]#

Bases: RuntimeError

Base class for Fetcher exceptions.

exception ForbiddenOperationError(operation: str, reason: str = 'not supported by this fetcher.')[source]#

Bases: FetcherError

Exception indicating that the Fetcher does not support an operation.

exception ImplementationError[source]#

Bases: FetcherError

An underlying implementation did something wrong.

exception UnknownPlaceholderError[source]#

Bases: FetcherError

Caller requested unknown placeholder name(s).

exception UnknownIdError[source]#

Bases: FetcherError

Caller requested unknown id(s).

exception UnknownSourceError(unknown_sources: Iterable, sources: Iterable)[source]#

Bases: FetcherError

Caller requested unknown source(s).

exception DuplicateSourceWarning[source]#

Bases: FetcherWarning

Duplicate sources detected.

exception DuplicateSourceError[source]#

Bases: FetcherError

Multiple translations for the same source received.