Skip to content

Exceptions

django_traduire.exceptions

Exceptions raised by django-traduire.

Every failure surfaces as one of these, so callers can recover explicitly instead of catching a bare Exception.

TraduireError

Bases: Exception

Base class for every error raised by django-traduire.

Source code in src/django_traduire/exceptions.py
class TraduireError(Exception):
    """Base class for every error raised by django-traduire."""

ConfigurationError

Bases: TraduireError

A TRADUIRE setting is missing, unknown, or has an invalid value.

Source code in src/django_traduire/exceptions.py
class ConfigurationError(TraduireError):
    """A ``TRADUIRE`` setting is missing, unknown, or has an invalid value."""

BackendError

Bases: TraduireError

A translation backend failed or returned an unusable response.

Source code in src/django_traduire/exceptions.py
class BackendError(TraduireError):
    """A translation backend failed or returned an unusable response."""