__title__ = 'vishap.exceptions'
__author__ = 'Artur Barseghyan'
__copyright__ = 'Copyright (c) 2013-2015 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = (
'PluginCodeError', 'ImproperlyConfigured', 'PluginNotFound',
'PluginDetectionError', 'InvalidRegistryItemType'
)
[docs]class PluginCodeError(Exception):
"""
Exception raised when language code is left empty or has incorrect value.
"""
[docs]class PluginNotFound(Exception):
"""
Exception raised when language pack is not found for the language code
given.
"""
[docs]class PluginDetectionError(Exception):
"""
Exception raised when language can't be detected for the text given.
"""
[docs]class InvalidRegistryItemType(ValueError):
"""
Raised when an attempt is made to register an item in the registry which
does not have a proper type.
"""