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:**
This module defines **database** component exceptions.
**Others:**
"""
#**********************************************************************************************************************
#*** Internal imports.
#**********************************************************************************************************************
import foundations.exceptions
#**********************************************************************************************************************
#*** Module attributes.
#**********************************************************************************************************************
__author__ = "Thomas Mansencal"
__copyright__ = "Copyright (C) 2008 - 2012 - 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):
"""
This class is the abstract base class for database related exceptions.
"""
pass
[docs]class DatabaseOperationError(AbstractDatabaseError):
"""
This class is used for Database operation exceptions.
"""
pass
[docs]class AbstractIblSetError(foundations.exceptions.AbstractError):
"""
This class is the abstract base class for Ibl Set related exceptions.
"""
pass
[docs]class MissingIblSetFileError(AbstractIblSetError):
"""
This class is used when an Ibl Set's file is missing.
"""
pass
[docs]class MissingIblSetIconError(AbstractIblSetError):
"""
This class is used when an Ibl Set's icon is missing.
"""
pass
[docs]class MissingIblSetPreviewImageError(AbstractIblSetError):
"""
This class is used when an Ibl Set's preview image is missing.
"""
pass
[docs]class MissingIblSetBackgroundImageError(AbstractIblSetError):
"""
This class is used when an Ibl Set's background image is missing.
"""
pass
[docs]class MissingIblSetLightingImageError(AbstractIblSetError):
"""
This class is used when an Ibl Set's lighting image is missing.
"""
pass
[docs]class MissingIblSetReflectionImageError(AbstractIblSetError):
"""
This class is used when an Ibl Set's reflection image is missing.
"""
pass
[docs]class AbstractTemplateError(foundations.exceptions.AbstractError):
"""
This class is the abstract base class for Template related exceptions.
"""
pass
[docs]class MissingTemplateFileError(AbstractTemplateError):
"""
This class is used when a Template file is missing.
"""
pass
[docs]class MissingTemplateHelpFileError(AbstractTemplateError):
"""
This class is used when a Template help file is missing.
"""
pass