id_translation.fetching.exceptions#
Errors and warnings related to fetching.
Exceptions
Raised when calling |
|
Multiple translations for the same source received. |
|
Duplicate sources detected. |
|
Base class for |
|
Base class for |
|
|
Exception indicating that the |
An underlying implementation did something wrong. |
|
Caller requested unknown id(s). |
|
Caller requested unknown placeholder name(s). |
|
|
Caller requested unknown source(s). |
- exception CacheAccessNotAvailableError[source]#
Bases:
FetcherErrorRaised when calling
AbstractFetcher.cache_accesson an instance that is not cached.
- exception DuplicateSourceError[source]#
Bases:
FetcherErrorMultiple translations for the same source received.
- exception DuplicateSourceWarning[source]#
Bases:
FetcherWarningDuplicate sources detected.
- exception FetcherError[source]#
Bases:
RuntimeErrorBase class for
Fetcherexceptions.
- exception FetcherWarning[source]#
Bases:
RuntimeWarningBase class for
Fetcherwarnings.
- exception ForbiddenOperationError(operation, reason)[source]#
Bases:
FetcherErrorException indicating that the
Fetcherdoes not support an operation.
- exception ImplementationError[source]#
Bases:
FetcherErrorAn underlying implementation did something wrong.
- exception UnknownIdError[source]#
Bases:
FetcherErrorCaller requested unknown id(s).
- exception UnknownPlaceholderError[source]#
Bases:
FetcherErrorCaller requested unknown placeholder name(s).
- exception UnknownSourceError(unknown_sources, sources, msg='Sources {unknown_sources} not recognized. Known sources: {sources}.')[source]#
Bases:
FetcherErrorCaller requested unknown source(s).
- Parameters:
unknown_sources – The sources which are not known to the Fetcher.
sources – Sources known to the fetcher.
msg – A format string that takes unknown_sources and sources.