Source code for sibl_gui.components.core.database.exceptions

#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
**exceptions.py**

**Platform:**
	Windows, Linux, Mac Os X.

**Description:**
	Defines **database** component exceptions. 

**Others:**

"""

#**********************************************************************************************************************
#***	Future imports.
#**********************************************************************************************************************
from __future__ import unicode_literals

#**********************************************************************************************************************
#***	Internal imports.
#**********************************************************************************************************************
import foundations.exceptions

#**********************************************************************************************************************
#***	Module attributes.
#**********************************************************************************************************************
__author__ = "Thomas Mansencal"
__copyright__ = "Copyright (C) 2008 - 2014 - Thomas Mansencal"
__license__ = "GPL V3.0 - http://www.gnu.org/licenses/"
__maintainer__ = "Thomas Mansencal"
__email__ = "thomas.mansencal@gmail.com"
__status__ = "Production"

__all__ = ["LOGGER", "AbstractDatabaseError",
			"DatabaseOperationError",
			"AbstractIblSetError",
			"MissingIblSetFileError",
			"MissingIblSetIconError",
			"MissingIblSetPreviewImageError",
			"MissingIblSetBackgroundImageError",
			"MissingIblSetLightingImageError",
			"MissingIblSetReflectionImageError",
			"AbstractTemplateError",
			"MissingTemplateFileError",
			"MissingTemplateHelpFileError"]

#**********************************************************************************************************************
#***	Module classes and definitions.
#**********************************************************************************************************************
[docs]class AbstractDatabaseError(foundations.exceptions.AbstractError): """ Defines the abstract base class for database related exceptions. """ pass
[docs]class DatabaseOperationError(AbstractDatabaseError): """ Defines Database operation exceptions. """ pass
[docs]class AbstractIblSetError(foundations.exceptions.AbstractError): """ Defines the abstract base class for Ibl Set related exceptions. """ pass
[docs]class MissingIblSetFileError(AbstractIblSetError): """ Raises when an Ibl Set's file is missing. """ pass
[docs]class MissingIblSetIconError(AbstractIblSetError): """ Raises when an Ibl Set's icon is missing. """ pass
[docs]class MissingIblSetPreviewImageError(AbstractIblSetError): """ Raises when an Ibl Set's preview image is missing. """ pass
[docs]class MissingIblSetBackgroundImageError(AbstractIblSetError): """ Raises when an Ibl Set's background image is missing. """ pass
[docs]class MissingIblSetLightingImageError(AbstractIblSetError): """ Raises when an Ibl Set's lighting image is missing. """ pass
[docs]class MissingIblSetReflectionImageError(AbstractIblSetError): """ Raises when an Ibl Set's reflection image is missing. """ pass
[docs]class AbstractTemplateError(foundations.exceptions.AbstractError): """ Defines the abstract base class for Template related exceptions. """ pass
[docs]class MissingTemplateFileError(AbstractTemplateError): """ Raises when a Template file is missing. """ pass
[docs]class MissingTemplateHelpFileError(AbstractTemplateError): """ Raises when a Template help file is missing. """ pass