id_translation.exceptions#

General errors for the translation suite.

Exceptions

ConfigurationChangedError

See Translator.load_persistent_instance().

ConfigurationError

Raised in case of bad configuration.

ConnectionStatusError

Raised when trying to perform operations in a bad online/offline state.

MissingNamesError

Raised if names could not be derived based on the data type, and aren't explicitly given.

TooManyFailedTranslationsError

Raised if too many IDs fail to translate.

TranslationAbortedWarning

Translation was aborted.

TranslationDisabledWarning

Translation is globally disabled.

TranslationError

Base class for translation errors.

TranslationWarning

Base class for translation warnings.

exception ConfigurationChangedError[source]#

Bases: Exception

See Translator.load_persistent_instance().

exception ConfigurationError[source]#

Bases: TypeError

Raised in case of bad configuration.

exception ConnectionStatusError[source]#

Bases: ConnectionError

Raised when trying to perform operations in a bad online/offline state.

exception MissingNamesError[source]#

Bases: TranslationError

Raised if names could not be derived based on the data type, and aren’t explicitly given.

exception TooManyFailedTranslationsError[source]#

Bases: TranslationError

Raised if too many IDs fail to translate.

exception TranslationAbortedWarning[source]#

Bases: TranslationWarning

Translation was aborted.

Emitted when no derived names are mapped to sources.

exception TranslationDisabledWarning[source]#

Bases: TranslationWarning

Translation is globally disabled.

Emitted when ID_TRANSLATION_DISABLED is set.

exception TranslationError[source]#

Bases: Exception

Base class for translation errors.

exception TranslationWarning[source]#

Bases: UserWarning

Base class for translation warnings.