Source code for mincepy.exceptions
__all__ = 'NotFound', 'ModificationError', 'ObjectDeleted', 'DuplicateKeyError', 'MigrationError'
[docs]class NotFound(Exception):
"""Raised when something can not be found in the history"""
[docs]class ModificationError(Exception):
"""Raised when a modification of the history encountered a problem"""
[docs]class ObjectDeleted(NotFound):
"""Raise when the user tries to interact with a deleted object"""
[docs]class DuplicateKeyError(Exception):
"""Indicates that a uniqueness constraint was violated"""
[docs]class MigrationError(Exception):
"""Indicates that an error occurred during migration"""