Skip to content

exceptions

django_spire.contrib.sync.core.exceptions

SyncError

Bases: Exception

Base exception for all sync operations.

SyncAbortedError

Bases: SyncError

Sync aborted due to a recoverable failure.

ClockDriftError

Bases: SyncAbortedError

Remote node clock exceeds the allowed drift threshold.

ClockNotConfiguredError

Bases: SyncError

SyncableMixin clock was not configured at startup.

ClockOverflowError

Bases: SyncError

HLC counter overflowed or monotonicity was violated.

ConflictStateError

Bases: SyncError

Conflict resolver received an invalid or incomplete conflict.

CircularDependencyError

Bases: SyncError

Dependency graph contains a cycle.

DecompressionLimitError

Bases: SyncError

Decompressed data exceeds the allowed size limit.

InvalidParameterError

Bases: SyncError

Constructor or function received an invalid argument.

InvalidResponseError

Bases: SyncAbortedError

Remote node returned a malformed or oversized response.

LockContentionError

Bases: SyncAbortedError

Another sync session is already running for this node.

ManifestChecksumError

Bases: SyncAbortedError

Manifest checksum verification failed.

ManifestFieldError

Bases: SyncError

Manifest contains missing or invalid fields.

PayloadLimitError

Bases: SyncAbortedError

Collected payload exceeds the configured size or record limit.

BatchLimitError

Bases: SyncError

Batch size exceeds the configured maximum.

RecordFieldError

Bases: SyncError

Record contains missing or invalid fields.

RecordSerializationError

Bases: SyncError

Record contains a value that cannot be serialized to JSON.

RetryExhaustedError

Bases: SyncAbortedError

Retry helper exhausted all configured attempts.

TransportRequiredError

Bases: SyncError

Engine requires a transport for client-side sync.

UnknownDependencyError

Bases: SyncError

Model declares a dependency on an unregistered model.

UnknownModelError

Bases: SyncError

Model label does not match any registered syncable model.