storage_backend/component/exception.py

19 lines
475 B
Python
Raw Normal View History

2024-11-08 02:15:16 +07:00
# Copyright 2017 Camptocamp SA
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html)
class ComponentException(Exception):
"""Base Exception for the components"""
class NoComponentError(ComponentException):
"""No component has been found"""
class SeveralComponentError(ComponentException):
"""More than one component have been found"""
class RegistryNotReadyError(ComponentException):
"""Component registry not ready yet for given DB."""