__title__ = "fobi.exceptions"
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2014-2019 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__all__ = (
"BaseException",
"DoesNotExist",
"FormCallbackError",
"FormElementPluginDoesNotExist",
"FormElementPluginError",
"FormHandlerPluginDoesNotExist",
"FormHandlerPluginError",
"FormPluginError",
"FormWizardHandlerPluginDoesNotExist",
"ImproperlyConfigured",
"IntegrationFormElementPluginDoesNotExist",
"IntegrationFormHandlerPluginDoesNotExist",
"InvalidRegistryItemType",
"NoDefaultThemeSet",
"PluginDoesNotExist",
"ThemeDoesNotExist",
)
[docs]class BaseException(Exception):
"""Base exception."""
[docs]class InvalidRegistryItemType(ValueError, BaseException):
"""Invalid registry item type.
Raised when an attempt is made to register an item in the registry which
does not have a proper type.
"""
[docs]class DoesNotExist(BaseException):
"""Raised when something does not exist."""
[docs]class ThemeDoesNotExist(DoesNotExist):
"""Raised when no theme with given uid can be found."""
[docs]class PluginDoesNotExist(DoesNotExist):
"""Raised when no plugin with given uid can be found."""
[docs]class NoDefaultThemeSet(ImproperlyConfigured):
"""Raised when no active theme is chosen."""