"""Exceptions for the Django Tenant Options package."""
[docs]classModelClassParsingError(Exception):"""Used when a model class cannot be parsed from the option provided."""
[docs]classIncorrectSubclassError(Exception):"""Used when the value of `option_model` is not a subclass of the correct abstract model."""
[docs]classNoTenantProvidedFromViewError(Exception):"""Used when a view does not pass an tenant instance from the view to a form."""
[docs]classInvalidDefaultOptionError(Exception):"""Used when a default option defined in a model is not `OptionType.MANDATORY` or `OptionType.OPTIONAL`."""
[docs]classModelValidationError(Exception):"""Custom exception for model validation errors."""