Source code for save_to_db.exceptions.item_collection

""" This module contains exceptions for
:py:class:`~save_to_db.core.utils.item_collection.ItemCollection` class.
"""


[docs]class ItemCollectionException(Exception): """General exception for :py:class:`~save_to_db.core.utils.item_collection.ItemCollection` class. """
[docs]class CollectionDoesNotExist(ItemCollectionException): """Raised when trying to get collection that does not exist using `collection_id`. """
[docs]class CollectionIdAlreadyInUse(ItemCollectionException): """Raised when trying to create new item class collection with `collection_id` value already taken. """