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.

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 TranslationDisabledWarning[source]#

Bases: TranslationWarning

Translation is globally disabled.

exception TranslationError[source]#

Bases: Exception

Base class for translation errors.

exception TranslationWarning[source]#

Bases: UserWarning

Base class for translation warnings.