Source code for django_snapshots.exceptions
"""All public exceptions for django-snapshots."""
[docs]
class SnapshotError(Exception):
"""Base class for all django-snapshots exceptions."""
[docs]
class SnapshotStorageCapabilityError(SnapshotError):
"""Storage backend does not support the requested operation.
Raised when a feature requires AdvancedSnapshotStorage but the configured
backend only satisfies SnapshotStorage.
"""
[docs]
class SnapshotExistsError(SnapshotError):
"""A snapshot with this name already exists in storage.
Pass --overwrite to replace it.
"""
[docs]
class SnapshotNotFoundError(SnapshotError):
"""No snapshot with this name exists in storage."""
[docs]
class SnapshotIntegrityError(SnapshotError):
"""Checksum or signature verification failed.
Raised during import when an artifact's SHA-256 checksum does not match
the value recorded in the manifest.
"""
[docs]
class SnapshotVersionError(SnapshotError):
"""Manifest version is not supported by this release of django-snapshots."""
[docs]
class SnapshotEncryptionError(SnapshotError):
"""Encryption or decryption failed."""
[docs]
class SnapshotConnectorError(SnapshotError):
"""Database connector subprocess exited with a non-zero status."""